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:
@@ -531,14 +531,14 @@ function setTagHeader()
|
|||||||
var tagsString = "";
|
var tagsString = "";
|
||||||
|
|
||||||
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user