Bug 478840 - markAsNotJunkMarksUnRead should only apply when the message is unjunked; r+sr=bienvenu

This commit is contained in:
Kent James 2009-03-01 17:57:54 +01:00
Родитель 718ae26064
Коммит a66fce1afd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3110,10 +3110,10 @@ nsMsgDBView::DetermineActionsForJunkChange(PRBool msgsAreJunk,
// set the move target folder to the inbox, if any.
if (!msgsAreJunk)
{
prefBranch->GetBoolPref("mail.spam.markAsNotJunkMarksUnRead",
&changeReadState);
if (folderFlags & nsMsgFolderFlags::Junk)
{
prefBranch->GetBoolPref("mail.spam.markAsNotJunkMarksUnRead",
&changeReadState);
nsCOMPtr<nsIMsgFolder> rootMsgFolder;
rv = server->GetRootMsgFolder(getter_AddRefs(rootMsgFolder));
NS_ENSURE_SUCCESS(rv,rv);