зеркало из https://github.com/mozilla/pjs.git
fix 227657 mark msg read filter still leaves msg as new, r/sr=mscott
This commit is contained in:
Родитель
f5b44804ad
Коммит
fbb37fff5d
|
@ -1867,8 +1867,12 @@ nsresult nsParseNewMailState::MoveIncorporatedMessage(nsIMsgDBHdr *mailHdr,
|
|||
PRUint32 newFlags;
|
||||
// set new byte offset, since the offset in the old file is certainly wrong
|
||||
newHdr->SetMessageKey (newMsgPos);
|
||||
newHdr->OrFlags(MSG_FLAG_NEW, &newFlags);
|
||||
destMailDB->AddToNewList(newMsgPos);
|
||||
newHdr->GetFlags(&newFlags);
|
||||
if (! (newFlags & MSG_FLAG_READ))
|
||||
{
|
||||
newHdr->OrFlags(MSG_FLAG_NEW, &newFlags);
|
||||
destMailDB->AddToNewList(newMsgPos);
|
||||
}
|
||||
destMailDB->AddNewHdrToDB(newHdr, PR_TRUE);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче