Closed
Bug 312952
Opened 19 years ago
Closed 18 years ago
Handle IMAP input "NIL)" correctly.
Categories
(MailNews Core :: Networking: IMAP, defect)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: engel, Assigned: engel)
References
Details
Attachments
(2 files)
5.80 KB,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
4.40 KB,
patch
|
Details | Diff | Splinter Review |
In almost all cases when |CreateNilString()| is called, it is followed by |AdvanceToNextToken()|. If the token would be |NIL)|, this means that the ')' would erroneously be overlooked by the parser. Also note that a token like |"quoted")|, the ')' would be properly retained. This bug required the following kludge. http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp&rev=1.129&root=/cvsroot&mark=1525-1529#1520 Bug and kludge should be removed.
Assignee | ||
Comment 1•19 years ago
|
||
Also, there might be some kludges in |nsImapServerResponseParser::envelope_data()|, http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp&rev=1.129&root=/cvsroot&mark=1405,1426-1428#1400 However, it seems to me that this code for parsing an ENVELOPE response is not in use (it should probably still be kept for a more complete implementation of the IMAP protocol), because neither FETCH ENVELOPE nor FETCH ALL is ever requested from the server, http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsImapProtocol.cpp&rev=1.615&root=/cvsroot#2799
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•19 years ago
|
||
The kludge in |nsImapServerResponseParser::envelope_data()| originates from the patch to Bug 41236, http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/mailnews/imap/src&command=DIFF_FRAMESET&file=nsImapServerResponseParser.cpp&rev2=1.62&rev1=1.61
Assignee | ||
Comment 3•19 years ago
|
||
(Note that both kludges were relevant only if |envelope_data()| was invoked.)
Assignee | ||
Updated•19 years ago
|
Attachment #200037 -
Flags: review?(bienvenu)
Comment 4•19 years ago
|
||
Comment on attachment 200037 [details] [diff] [review] fix |CreateNilString|, remove two kludges thanks, Hans-A
Attachment #200037 -
Flags: review?(bienvenu) → review+
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•18 years ago
|
||
This patch is not yet applied (only the comment with the definition of envelope data is in the CVS). http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsIMAPGenericParser.cpp&rev=1.51&mark=303-304#294
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•18 years ago
|
||
Comment 7•18 years ago
|
||
fix checked in, thx, Hans-Andreas!
Status: REOPENED → RESOLVED
Closed: 19 years ago → 18 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•