Closed Bug 327991 Opened 20 years ago Closed 20 years ago

Simplify 3 central functions in nsIMAPGenericParser.cpp

Categories

(MailNews Core :: Networking: IMAP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: engel, Assigned: engel)

References

Details

Attachments

(2 files)

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.
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).
Attachment #212551 - Flags: review?(bienvenu)
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+
fixed on trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: