Open Bug 1358569 Opened 8 years ago Updated 2 years ago

Allow "Undo" after detach/delete attachment (prior to compacting the folder)

Categories

(MailNews Core :: Backend, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: johnkw, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20170413192749 Steps to reproduce: Delete/detach attachment. Actual results: No Undo button. Expected results: Have an Undo button. I noticed when recovering from bug 1358565 (where a separate issue caused data loss) that it turns out Thunderbird has the old attachments still sitting on disk in the mbox, so itcould allow an "Undo" button to restore accidentally deleted Attachments. It wouldn't be able to do so after a folder "Compact", but in the vast majority of cases you'd want that Undo button immediately after a mis-click, and it would be there. (I have, for example, accidentally clicked "Delete" instead of "Detach" and had to restore from a backup.)
Very unlikely that we're going to do any changes/improvements to undo.
Severity: normal → enhancement
For anyone finding this page after accidentally deleting an attachment in Thunderbird and desperately looking for an undo button: You can shut down Thunderbird and go in and edit the mbox, finding the old mail entry with "X-Mozilla-Status: 0009", and changing it to say "X-Mozilla-Status: 0001". Then relaunch Thunderbird and do "Properties > Repair Folder" on the folder, to get your old email with your attachment back. This work-around works until a "Compact" action is done on that folder. (As also mentioned in Bug 1358565.)
> it could allow an "Undo" button to restore accidentally deleted Attachments. There is the added complication, that a new message without the attachment has already "replaced" the original message. Perhaps Magnus has a perspective.
Component: Untriaged → Backend
Flags: needinfo?(mkmelin+mozilla)
Product: Thunderbird → MailNews Core
Version: 52 Branch → 52
I suppose it would be possible to find the original message, then undelete that + delete current. But it's quite a hack...
Flags: needinfo?(mkmelin+mozilla)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.