summaryrefslogtreecommitdiffstats
path: root/mailnews/imap
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-12 22:58:56 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-12 22:58:56 -0500
commit9f00e5184aca0a5dbc3cb05142322bc3713e681a (patch)
tree79763e959f5dea722d8f76bf4611db8a3b2470ab /mailnews/imap
parent6c4ed65046657567a8011028ae35097bc42ab5c9 (diff)
downloadUXP-9f00e5184aca0a5dbc3cb05142322bc3713e681a.tar
UXP-9f00e5184aca0a5dbc3cb05142322bc3713e681a.tar.gz
UXP-9f00e5184aca0a5dbc3cb05142322bc3713e681a.tar.lz
UXP-9f00e5184aca0a5dbc3cb05142322bc3713e681a.tar.xz
UXP-9f00e5184aca0a5dbc3cb05142322bc3713e681a.zip
Manually revert Bug 1494764 - Removed MOZ_ASSERT but now still process line where it would occur.
Tag #1273
Diffstat (limited to 'mailnews/imap')
-rw-r--r--mailnews/imap/src/nsImapServerResponseParser.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/mailnews/imap/src/nsImapServerResponseParser.cpp b/mailnews/imap/src/nsImapServerResponseParser.cpp
index b4c94ca94..68e929fe6 100644
--- a/mailnews/imap/src/nsImapServerResponseParser.cpp
+++ b/mailnews/imap/src/nsImapServerResponseParser.cpp
@@ -3169,13 +3169,11 @@ bool nsImapServerResponseParser::msg_fetch_literal(bool chunk, int32_t origin)
if (fTotalDownloadSize > 0)
fServerConnection.PercentProgressUpdateEvent(0, charsReadSoFar + origin, fTotalDownloadSize);
}
- if (!lastChunk && (charsReadSoFar > numberOfCharsInThisChunk))
+ if (charsReadSoFar > numberOfCharsInThisChunk)
{
- // This is the last line of a chunk but not the last chunk of a multi-chunk
- // message or the only "chunk" of a smaller non-chunked message. "Literal" here
- // means actual email data and its EOLs, without imap protocol elements and their
- // EOLs. End of line is defined by two characters \r\n (i.e., CRLF, 0xd,0xa)
- // specified by RFC822.
+ // This is the last line of a chunk. "Literal" here means actual email data and
+ // its EOLs, without imap protocol elements and their EOLs. End of line is
+ // defined by two characters \r\n (i.e., CRLF, 0xd,0xa) specified by RFC822.
// Here is an example the most typical last good line of a chunk:
// "1s8AA5i4AAvF4QAG6+sAAD0bAPsAAAAA1OAAC)\r\n", where ")\r\n" are non-literals.
// This an example of the last "good" line of a chunk that terminates with \r\n
@@ -3245,7 +3243,7 @@ bool nsImapServerResponseParser::msg_fetch_literal(bool chunk, int32_t origin)
}
else
{
- // Not the last line of a chunk or any line when lastChunk.
+ // Not the last line of a chunk.
if (!fNextChunkStartsWithNewline)
{
// Process unmodified fCurrentLine string.