6.0.0-beta1
7/9/25

[#5470] move to trash + over quota can result in lost messages
Summary move to trash + over quota can result in lost messages
Queue IMP
Queue Version 4.1.4
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester cbs (at) cts (dot) ucla (dot) edu
Created 06/17/2007 (6597 days ago)
Due
Updated 07/03/2007 (6581 days ago)
Assigned 06/17/2007 (6597 days ago)
Resolved 07/03/2007 (6581 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/03/2007 02:51:50 PM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in HEAD and 4.1.5.
06/17/2007 09:06:08 AM Jan Schneider Priority ⇒ 2. Medium
State ⇒ Assigned
Assigned to Michael Slusarz
 
06/17/2007 07:05:37 AM cbs (at) cts (dot) ucla (dot) edu Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ move to trash + over quota can result in lost messages
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
If IMP is configured to move deleted messages to the trash and an 
account is over quota, it's not possible to undelete.



In lib/Message.php, starting at line 203.  If imap_mail_move() returns 
false, IMP loops over the messages to be deleted, downloads the 
message headers, marks the original messages for deletion and expunges 
them, and then uploads the headers to the Trash folder.



The message bodies and any attachments are never downloaded, so if a 
person is at quota, selects a number of messages to delete, and tries 
to move them to the trash, the body of every message moved to the 
trash is lost.

Saved Queries