Closed Bug 261837 Opened 21 years ago Closed 13 years ago

IMAP: messages marked as deleted are deleted permanently on exit

Categories

(MailNews Core :: Networking: IMAP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: no-spam-2004, Unassigned)

Details

User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; i686) (KHTML, like Gecko) Build Identifier: 0.8 The mail deletion scheme for an IMAP server is not correct for different "When I delete a message" settings. This is the case for changing the settings for a single user account and for a shared IMAP folder (if different users have different settings w.r.t. the deletion of mails). Reproducible: Always Steps to Reproduce: Case 1: single user: a) "Server Settings" (within "Account Settings" dialog) for an IMAP account for "When I delete a message" is initially "Mark it as deleted". b) A mail is deleted within an IMAP folder. It gets marked as deleted. c) "When I delete a message" setting is changed to "Move it to the Trash folder". d) when exiting from TB, the mail from step b) is deleted permanently from server, but not moved to trash folder. Case 2: multiple user / shared IMAP folder a) User 1 uses "Mark it as deleted" as deletion scheme. b) He/she deletes a message in an IMAP folder. It gets marked as deleted, but is still physicalle there. c) User 2 uses "Move it to the Trash folder" (ith TB or, potentially, with another mail client). d) He/She enteres the IMAP folder with the message marked as deleted. e) This message is nat visible to him/her. However, it gets physically removed from the IMAP folder upon exiting from TB. Actual Results: A message already marked as deleted gets deleted directly without saving a copy to the trash folder. Expected Results: Recommended solution: Please add to the settings an additional (and independent from the deletion scheme) check box for showing IMAP messages marked as deleted. And do not delete messages marked as deleted from IMAP folders on exiting TB by default. Maybe redefine the "expunge inbox on exit" checkbox to "expunge all mailboxes on exit".
I can confirm case #1 (TB 1.0, Win2K, fastmail.fm IMAP). Note that I do not have "expunge on exit" set. I suppose on making the delete-model change, it would be feasible to locate all marked-as-deleted messages, move them to the Trash, and clear their deleted status; but what would be the action if the delete-model were changed in the other direction? Leave the Trash folder but mark all the contents as deleted? Maybe displaying a warning when the delete model changes, allowing the user to handle that all manually, would be the best.
Assignee: mscott → bienvenu
Status: UNCONFIRMED → NEW
Component: General → Networking: IMAP
Ever confirmed: true
OS: Windows 2000 → All
Product: Thunderbird → Core
QA Contact: grylchan
Hardware: PC → All
Summary: IMAP: messages marked as deleted gets deleted permanently on program exit → IMAP: messages marked as deleted are deleted permanently on exit
Version: unspecified → Trunk
Product: Core → MailNews Core
QA Contact: grylchan → networking.imap
Assignee: dbienvenu → nobody
(In reply to Norbert Lemke from comment #0) > Expected Results: > Recommended solution: > Please add to the settings an additional (and independent from the deletion > scheme) check box for > showing IMAP messages marked as deleted. This exists for some years now. > And do not delete messages marked > as deleted from > IMAP folders on exiting TB by default. cleanup_inbox_on_exit is not set to true by defaut, dunno if it ever was. Re movint marked-as-deleted messages to trash when changing delete model within the session i don't think that's reasonable. ->WFM
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.