diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 18:11:49 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 18:11:49 -0500 |
commit | 5393f033bcd3d9933c71b4beea4ff90f4e49accc (patch) | |
tree | d6d82daa0b5285d7843230a2e1d4827bbd8fa5a1 | |
parent | 02dc2390ee4a67600318e2f8df9062adaf83b3dc (diff) | |
download | UXP-5393f033bcd3d9933c71b4beea4ff90f4e49accc.tar UXP-5393f033bcd3d9933c71b4beea4ff90f4e49accc.tar.gz UXP-5393f033bcd3d9933c71b4beea4ff90f4e49accc.tar.lz UXP-5393f033bcd3d9933c71b4beea4ff90f4e49accc.tar.xz UXP-5393f033bcd3d9933c71b4beea4ff90f4e49accc.zip |
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
-rw-r--r-- | mailnews/imap/src/nsImapProtocol.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mailnews/imap/src/nsImapProtocol.cpp b/mailnews/imap/src/nsImapProtocol.cpp index dee4ff169..1d0c98d48 100644 --- a/mailnews/imap/src/nsImapProtocol.cpp +++ b/mailnews/imap/src/nsImapProtocol.cpp @@ -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; |