6.0.0-RC7
6/27/26

[#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 6/17/07 (6950 days ago)
Due
Updated 7/3/07 (6934 days ago)
Assigned 6/17/07 (6950 days ago)
Resolved 7/3/07 (6934 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
502 Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in HEAD and 4.1.5.
89 Jan Schneider Priority ⇒ 2. Medium
State ⇒ Assigned
Assigned to Michael Slusarz
 
377 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