Closed
Bug 307605
Opened 20 years ago
Closed 20 years ago
Eliminate method nsIMAPGenericParser::at_end_of_line()
Categories
(MailNews Core :: Networking: IMAP, defect)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: engel, Assigned: engel)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
12.93 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
The method |nsIMAPGenericParser::at_end_of_line()| can be eliminated and be
replaced by using the field |fAtEndOfLine|.
Assignee | ||
Comment 1•20 years ago
|
||
There are three possibilities for the value of fNextToken:
1) |fNextToken| is set to |nsnull|
2) |fNextToken| is obtained via |strtok|. Then it cannot be CRLF (in fact, it
does not contain any whitespaces)
3) |fNextToken| is set explicitly to |CRLF|. In this case, also |fAtEndOfLine|
is set to PR_TRUE (this must added in one place).
So, if |nsCRT::strcmp(fNextToken, CRLF) == 0|, then |fAtEndOfLine| is true. Thus,
fAtEndOfLine || (nsCRT::strcmp(fNextToken, CRLF) == 0)
evaluates to |fAtEndOfLine|. Since the above statement is the return value of
|at_end_of_line()|, we can replace all calls to this function by |fAtEndOfLine|.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•20 years ago
|
||
Attachment #195353 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Attachment #195353 -
Flags: review+ → review?(bienvenu)
Comment 3•20 years ago
|
||
Comment on attachment 195353 [details] [diff] [review]
eliminate nsIMAPGenericParser::at_end_of_line()
seems ok - I'll apply the patch and run with it.
Attachment #195353 -
Flags: review?(bienvenu) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #195353 -
Flags: superreview?(bienvenu)
Comment 4•20 years ago
|
||
Comment on attachment 195353 [details] [diff] [review]
eliminate nsIMAPGenericParser::at_end_of_line()
I've been running with this for a bit and haven't seen any problems. I'll run
with it for a day or two more. Please ping me then to get me to check it in -
thx!
Attachment #195353 -
Flags: superreview?(bienvenu) → superreview+
Comment 5•20 years ago
|
||
fix checked in, thx, Hans.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 6•20 years ago
|
||
Both David and I have been using this on different IMAP servers, and I haven't
seen any fallout.
Verified FIXED using LXR and my source tree for code verification, and build
2005-10-01-05 for feature testing on Windows XP SeaMonkey trunk.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.1
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
•