Closed Bug 636681 Opened 14 years ago Closed 13 years ago

Send in background silently doesn't work if Outbox folder has corrupt .msf file

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 8.0

People

(Reporter: standard8, Assigned: Bienvenu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I happened to have something which corrupted my profile recently. As a result I think the .msf files were mostly zero in size.

Hence my outbox folder was corrupted.

I'd tried sending a couple of messages, one of those was to myself on a different account, and the compose window had closed fine. However, the messages didn't get sent - it wasn't until it I clicked on the outbox and it rebuilt its index that it showed two new messages, at which point I was able to use send unsent messages to send them.
Attached patch proposed fixSplinter Review
ignore the WeAeOffline part of the diff - that's for bug 671673.

This patch simply reparses the folder if we get an error opening the db, for both the send in background case, and the HasUnsentMessages case. In the former, we do the send when finished reparsing.
Assignee: nobody → dbienvenu
Attachment #551125 - Flags: review?(mbanner)
Attachment #551125 - Flags: review?(mbanner) → review+
Checked in: http://hg.mozilla.org/comm-central/rev/de5786ac0fd7
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 8.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: