Bug 343170 --> message tags shown twice in the message header if the tag is one of the old style labels. sr=bienvenu

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@201297 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2006-06-29 21:47:41 +00:00
parent 7932b11f84
commit 2f4958d52d

View File

@@ -531,14 +531,14 @@ function setTagHeader()
var tagsString = "";
// extract the tags from the msg hdr
var tags = msgHdr.getStringProperty('keywords');
var tags = msgHdr.getStringProperty('keywords');
var label = msgHdr.label;
if (label > 0)
{
var labelTag = '$label' + label + '0';
tagsString = encodeURIComponent(gPrefBranch.getComplexValue("mailnews.labels.description." + label,
Components.interfaces.nsIPrefLocalizedString).data);
var labelTag = '$label' + label;
if (!tags.search(labelTag)) // don't add the label if it's already in our keyword list
tagsString = encodeURIComponent(gPrefBranch.getComplexValue("mailnews.labels.description." + label,
Components.interfaces.nsIPrefLocalizedString).data);
}
// now convert the list of tag ids into user presentable strings, separate by commas