From 7a0d9801bbbdb37b522bfa2d399f22d4d5913530 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Wed, 7 Jun 2000 23:51:30 +0000 Subject: [PATCH] Bug #41236 --> when parsing the envelope response, we were choking if the message ID was NIL followed by a parantheses. I just fixed our lex error. r=bienvenu git-svn-id: svn://10.0.0.236/trunk@71741 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp b/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp index 53b63465794..e8f8ef3d356 100644 --- a/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp +++ b/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp @@ -1275,8 +1275,10 @@ void nsImapServerResponseParser::envelope_data() fServerConnection.HandleMessageDownLoadLine(headerLine.GetBuffer(), PR_FALSE); } else - break; - fNextToken = GetNextToken(); + break; + // only fetch the next token if we aren't eating a parenthes + if (ContinueParse() && (*fNextToken != ')') || tableIndex < (int)(sizeof(EnvelopeTable) / sizeof(EnvelopeTable[0])) - 1 ) + fNextToken = GetNextToken(); } fNextToken = GetNextToken();