Closed
Bug 327991
Opened 20 years ago
Closed 20 years ago
Simplify 3 central functions in nsIMAPGenericParser.cpp
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)
|
16.79 KB,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
|
15.95 KB,
patch
|
Details | Diff | Splinter Review |
The functions |CreateLiteral()|, |CreateQuoted()|, and |CreateParenGroup()| in |nsIMAPGenericParser| are somewhat lengthy and complex.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsIMAPGenericParser.cpp&rev=1.51&mark=335-410,413-505,508-668#335
Part of that complexity resulted from some kludges needed to implement BODYSTRUCTURE parsing. However, as Bug 312599 is now fixed, these kludges can be removed.
| Assignee | ||
Comment 1•20 years ago
|
||
This patch should not change the behavior of the parser [except that now quoted strings with escaped characters are correctly handled in |CreateParenGroup()|; and null is returned if no closing quote is found in |CreateQuoted()|].
Note that in the old version of CreateLiteral(), |terminateLine| is always true (after fixing Bug 312599).
| Assignee | ||
Comment 2•20 years ago
|
||
| Assignee | ||
Updated•20 years ago
|
Attachment #212551 -
Flags: review?(bienvenu)
Comment 3•20 years ago
|
||
Comment on attachment 212551 [details] [diff] [review]
Simplify CreateLiteral(), CreateQuoted(), and CreateParenGroup()
thx, Hans-Andreas. Sorry for the delay.Looks good; I'll check this in.
Attachment #212551 -
Flags: review?(bienvenu) → review+
Comment 4•20 years ago
|
||
fixed on trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•