Bug 1079280 - Don't transmit email when imap append response is bad.

This only applies to non-literal+ appends. Bad response typically occurs when {size} parameter of append command is larger than server can accept. This prevents TB from sending megabytes of data to a server that has already rejected it.

Tag #1273
This commit is contained in:
Matt A. Tobin 2019-11-10 18:11:49 -05:00 committed by Roy Tam
commit 87e80be2d1

View file

@ -6160,7 +6160,11 @@ void nsImapProtocol::UploadMessageFromFile (nsIFile* file,
if (NS_FAILED(rv)) goto done;
if (!useLiteralPlus)
ParseIMAPandCheckForNewMail();
{
ParseIMAPandCheckForNewMail();
if (!GetServerStateParser().LastCommandSuccessful())
goto done;
}
totalSize = fileSize;
readCount = 0;