Closed
Bug 668590
Opened 13 years ago
Closed 13 years ago
messageGenerator should use AddMessage
Categories
(Thunderbird :: Testing Infrastructure, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Bienvenu, Assigned: Bienvenu)
Details
Attachments
(2 files)
2.66 KB,
patch
|
rain1
:
review+
|
Details | Diff | Splinter Review |
2.95 KB,
patch
|
Details | Diff | Splinter Review |
mailnews/test/resources/messageGenerator writes directly to a berkeley mailbox. It should use addMessage instead and let the folder handle it.
this is fallout from the pluggable store work, but I've separated it out as part of my effort to make that patch smaller.
Attachment #543200 -
Flags: review?(sid.bugzilla)
Comment 1•13 years ago
|
||
Comment on attachment 543200 [details] [diff] [review]
proposed fix
Review of attachment 543200 [details] [diff] [review]:
-----------------------------------------------------------------
::: mailnews/test/resources/messageGenerator.js
@@ +633,2 @@
> for (let iMessage = 0; iMessage < aMessages.length; iMessage++) {
> + aFolder.addMessage(aMessages[iMessage].toMboxString());
Please
- fix the indentation of the for loop
- consider using for ( .. in Iterator(..)) instead
- either use localFolder rather than aFolder, or remove localFolder entirely
Attachment #543200 -
Flags: review?(sid.bugzilla) → review+
Assignee | ||
Comment 2•13 years ago
|
||
This is what I checked in - turned out the doc comments for the method were out of date as well.
Assignee: nobody → dbienvenu
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•