fix 274800 clicking on imap draft saved offline causes problems, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@170186 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c34304f34e
commit
bc1726e56b
@ -670,7 +670,9 @@ NS_IMETHODIMP nsMsgDBFolder::GetOfflineFileStream(nsMsgKey msgKey, PRUint32 *off
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = (*aFileStream)->Read(startOfMsg, sizeof(startOfMsg), &bytesRead);
|
||||
|
||||
if (NS_FAILED(rv) || bytesRead != sizeof(startOfMsg) || strncmp(startOfMsg, "From ", 5))
|
||||
// check if message starts with From, or is a draft and starts with FCC
|
||||
if (NS_FAILED(rv) || bytesRead != sizeof(startOfMsg) ||
|
||||
(strncmp(startOfMsg, "From ", 5) && (! (mFlags & MSG_FOLDER_FLAG_DRAFTS) || strncmp(startOfMsg, "FCC", 3))))
|
||||
{
|
||||
if (mDatabase)
|
||||
mDatabase->MarkOffline(msgKey, PR_FALSE, nsnull);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user