more work on 312940, sr=mscott - fix new flag handling when leaving folder and coming back, fix getting preview text for messages with content types like multipart/signed

This commit is contained in:
bienvenu%nventure.com 2005-12-02 04:04:30 +00:00
parent 6b3ffc3f67
commit bef503e531

View File

@ -456,8 +456,9 @@ NS_IMETHODIMP nsMsgDBFolder::ClearNewMessages()
m_saveNewMsgs.RemoveAll();
m_saveNewMsgs.Add(newMessageKeys, numNewKeys);
}
m_newMsgs.RemoveAll();
mDatabase->ClearNewList(PR_TRUE);
}
m_newMsgs.RemoveAll();
mNumNewBiffMessages = 0;
return rv;
}
@ -5154,10 +5155,8 @@ nsresult nsMsgDBFolder::GetMsgPreviewTextFromStream(nsIMsgDBHdr *msgHdr, nsIInpu
else if (FindInReadable(NS_LITERAL_CSTRING("text/plain"), curLine,
nsCaseInsensitiveCStringComparator()))
/* bodyFollowsHeaders = PR_TRUE */;
else if (FindInReadable(NS_LITERAL_CSTRING("multipart/mixed"), curLine,
nsCaseInsensitiveCStringComparator())
|| FindInReadable(NS_LITERAL_CSTRING("multipart/alternative"), curLine,
nsCaseInsensitiveCStringComparator()))
else if (FindInReadable(NS_LITERAL_CSTRING("multipart/"), curLine,
nsCaseInsensitiveCStringComparator()))
{
lookingForBoundary = PR_TRUE;
}