Closed Bug 668590 Opened 13 years ago Closed 13 years ago

messageGenerator should use AddMessage

Categories

(Thunderbird :: Testing Infrastructure, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(2 files)

Attached patch proposed fixSplinter 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 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+
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
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.

Attachment

General

Created:
Updated:
Size: