Closed Bug 94662 Opened 23 years ago Closed 23 years ago

IMAP: Undo/Redo does not work for imap::delete model

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: naving, Assigned: naving)

Details

Attachments

(2 files)

I found out that we are marking imap delete twice once before we go to the server and once after, so it unsets during the deletion, and when we do undo it sets back the delete flag. so we will have to decide which one we do not need
Attached patch proposed fix. (deleted) — Splinter Review
This case statement was responsible for setting the delete flag back on undo. There is no need to send delete/move notification to front-end because we do not select any message on undo/redo. Also for undo/redo where delete model is not moving to trash the dstFolder will be null. david, please review.
changing summary
Summary: IMAP: Undo delete when imap delete model is used does remove the X red → IMAP: Undo/Redo does not work for imap::delete model
the code you removed did much more than just send a notification to the front end - it updated the database as well. Are you sure that's not needed either? I think it also made it so that when you delete a message in the imap delete model, the next message gets selected. Does that still work after your change?
OK, I take that last part back, since we shouldn't be trying to change the selection on removing the deleted flag. But we want to reflect the change to the db.
Attached patch fix (deleted) — Splinter Review
I have checked deleting all msgs and undo delete still works. This will prevent from setting the delete flag again when we are trying to subtract it.
great, r=bienvenu
Isn't this bug dup of bug 59694?
Karen, Well not really, it does not toggle
But the undo/redo part is fixed, may be you can change the summary on that bug to make it toggle (only).
sr=mscott
fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified on WinNT 08-15-06-trunk build. Great! Now, Undo/Redo is working on IMAP Mark as deleted mode!
Status: RESOLVED → VERIFIED
And, I already updated bug 59694 for toggle only.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: