mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
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:
parent
f7f211f424
commit
87e80be2d1
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue