not respecting junkFolderName property in messenger.properties

localizers can't localize "Junk" folder on local folders (IMAP is ok)
r/sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2003-06-07 06:00:02 +00:00
parent 1be840d13a
commit 4d7cf14e20
4 changed files with 7 additions and 2 deletions

View File

@ -3384,7 +3384,9 @@ nsMsgLocalMailFolder::SetFlagsOnDefaultMailboxes(PRUint32 flags)
if (flags & MSG_FOLDER_FLAG_QUEUE)
setSubfolderFlag(NS_LITERAL_STRING("Unsent Messages").get(), MSG_FOLDER_FLAG_QUEUE);
// what about the Junk folder?
if (flags & MSG_FOLDER_FLAG_JUNK)
setSubfolderFlag(NS_LITERAL_STRING("Junk").get(), MSG_FOLDER_FLAG_JUNK);
return NS_OK;
}

View File

@ -115,6 +115,7 @@ nsMovemailIncomingServer::SetFlagsOnDefaultMailboxes()
MSG_FOLDER_FLAG_DRAFTS |
MSG_FOLDER_FLAG_TEMPLATES |
MSG_FOLDER_FLAG_TRASH |
MSG_FOLDER_FLAG_JUNK |
// hmm?
MSG_FOLDER_FLAG_QUEUE);
return NS_OK;

View File

@ -94,6 +94,7 @@ nsNoIncomingServer::SetFlagsOnDefaultMailboxes()
MSG_FOLDER_FLAG_DRAFTS |
MSG_FOLDER_FLAG_TEMPLATES |
MSG_FOLDER_FLAG_TRASH |
MSG_FOLDER_FLAG_JUNK |
MSG_FOLDER_FLAG_QUEUE);
return NS_OK;
}

View File

@ -194,7 +194,8 @@ nsPop3IncomingServer::SetFlagsOnDefaultMailboxes()
MSG_FOLDER_FLAG_SENTMAIL |
MSG_FOLDER_FLAG_DRAFTS |
MSG_FOLDER_FLAG_TEMPLATES |
MSG_FOLDER_FLAG_TRASH);
MSG_FOLDER_FLAG_TRASH |
MSG_FOLDER_FLAG_JUNK);
return NS_OK;
}