mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
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:
parent
6b3ffc3f67
commit
bef503e531
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user