6.0.0-beta1
9/24/25

[#3788] "Empty Trash" button deletes all e-mail from INBOX with specific preferences defined
Summary "Empty Trash" button deletes all e-mail from INBOX with specific preferences defined
Queue IMP
Queue Version 4.1.1
Type Bug
State Duplicate
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester poehler (at) nexcess (dot) net
Created 04/18/2006 (7099 days ago)
Due
Updated 04/20/2006 (7097 days ago)
Assigned 04/19/2006 (7098 days ago)
Resolved 04/19/2006 (7098 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/19/2006 03:46:24 PM poehler (at) nexcess (dot) net Comment #3 Reply to this comment
Thank you.  Is 4.1.2 currently considered "safe" for general use?  If 
not, would just updating a few files be a reasonable patch until 4.1.2 
is out the door?  If so, can you let me know which files those are?



Sorry for all the questions.  I hope they're reasonable and not too annoying.



Paul
04/19/2006 07:09:51 AM Michael Slusarz Comment #2
State ⇒ Duplicate
Priority ⇒ 2. Medium
Reply to this comment
This should have already been fixed as a result of some other IMAP 
fixes I have made.  But I've added some more sanity checking for this, 
and made it so these links don't appear if these values are set.   
Added this code to HEAD and 4.1.2.
04/19/2006 06:57:17 AM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
04/18/2006 09:38:48 PM poehler (at) nexcess (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ "Empty Trash" button deletes all e-mail from INBOX with specific preferences defined
Queue ⇒ IMP
Reply to this comment
We upgraded very recently to the latest versions of Horde and IMP 
(3.3.1 & 4.4.1).



A client of ours managed to find a series of events that lead to all the

mail from her INBOX being deleted when she clicked the "Empty Trash" 
menu item.



I've managed to reproduce this.  Here's what I did.



Under:

Options for Mail -> Deleting and Moving Messages



CHECKED: When deleting messages, move them to your Trash folder instead of

marking them as deleted?

UNCHECKED: Use Virtual Trash Folder?

Trash folder: [None]

CHECKED:  Display the "Empty Trash" link in the menubar?



With those options set, if you click the "Empty Trash" link in the menubar,

it will act as if the INBOX is the trash folder, and delete all the messages

in the INBOX.  The confirmation popup says "Are you sure you wish to 
empty your trash folder?"



I understand why this occured, I think - having no trash folder specified

made IMP treat the INBOX as the trash folder while emptying.  I don't think

this is intended behavior though.  The end user certainly wasn't expecting

the mail in their INBOX to be deleted.  It seems to me that the "Empty

Trash" link in the menubar should not appear if the selected trash 
folder is [None].  That would prevent this from happening in the future.


Saved Queries