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

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