mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug #3754 and Bug #3369 --> the total message size we are using when fetching by chunks may just be an approximation.
after the first fetch, we'll possibly get back a RFC822.SIZE which will have the exact size of the total message. Update the # bytes we need to download to match this new value if appropriate. sr=bienvenu
This commit is contained in:
parent
c8049d1889
commit
3e8163c79c
@ -2670,6 +2670,9 @@ void nsImapProtocol::FetchTryChunking(const char * messageIds,
|
||||
startByte, sizeToFetch,
|
||||
part);
|
||||
startByte += sizeToFetch;
|
||||
PRUint32 newMsgSize = GetServerStateParser().SizeOfMostRecentMessage();
|
||||
if (newMsgSize > 0 && newMsgSize != downloadSize)
|
||||
downloadSize = newMsgSize;
|
||||
}
|
||||
|
||||
// Only abort the stream if this is a normal message download
|
||||
|
Loading…
Reference in New Issue
Block a user