Closed Bug 440219 Opened 16 years ago Closed 16 years ago

deleted imap messages reappear and disappear rapidly

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 file)

Attached patch proposed fixSplinter Review
David Ascher reported this, Emre was able to reproduce something similar, and I can reproduce it this way:

hide the message pane
select an imap folder
delete a bunch of messages by holding down the delete key
let go of the delete key

You'll see the deleted messages reappear and then disappear.

The issue is that when we connect to the imap server and try to sync the folder, we check for messages that were "offline deleted", i.e., have offline delete ops in the database. But if the offline playback has started for those messages, they're removed from the database, so there's a window where the header is not in the db, but the delete hasn't happened on the server.

This is because offline operations are removed/cleared when playback starts. I'm going to submit a patch that postpones the removal of the offline ops until the operation has actually finished on the server. This will allow us to better handle failures playing back offline operations (though we run the risk of getting "stuck" with an offline operation - which is a bit scary)
Attachment #325670 - Flags: superreview?(neil)
Attachment #325670 - Flags: review?(neil)
Attachment #325670 - Flags: superreview?(neil)
Attachment #325670 - Flags: superreview+
Attachment #325670 - Flags: review?(neil)
Attachment #325670 - Flags: review+
fix checked in.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9
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: