fix invalid body partial error from imap server when clicking on message, r=cavin, sr=sspitzer 103171

This commit is contained in:
bienvenu%netscape.com 2001-12-04 00:25:58 +00:00
Родитель b8511d02e8
Коммит c8f2593a82
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -2702,9 +2702,14 @@ void nsImapProtocol::FetchTryChunking(const char * messageIds,
startByte, sizeToFetch,
part);
startByte += sizeToFetch;
PRUint32 newMsgSize = GetServerStateParser().SizeOfMostRecentMessage();
if (newMsgSize > 0 && newMsgSize != downloadSize)
downloadSize = newMsgSize;
// adjust the message size based on rfc822 size, if we're fetching
// the whole message, and not just a mime part.
if (whatToFetch != kMIMEPart)
{
PRUint32 newMsgSize = GetServerStateParser().SizeOfMostRecentMessage();
if (newMsgSize > 0 && newMsgSize != downloadSize)
downloadSize = newMsgSize;
}
}
// Only abort the stream if this is a normal message download