Ticket #1485002 (closed Bugs: fixed)
Move message to folder also expunges messages marked as deleted
| Reported by: | r@… | Owned by: | |
|---|---|---|---|
| Priority: | 10 - Lowest | Milestone: | 0.2-beta |
| Component: | Client Scripts | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by thomasb) (diff)
Steps to reproduce:
1) In main.inc.php set $rcmail_config['flag_for_deletion'] = TRUE;
2) In main.inc.php set $rcmail_config['trash_mbox'] = '';
3) Log into RC, open any folder and mark a message to be deleted
4) Drag (move) a message from the same folder above into any other folder
At this point, a few things happen:
1) The message marked as deleted in step 3 was actually expunged from the IMAP server during the move operation in step 4, but still appears in the message list
2) Clicking on "Compact" to get rid of the "phantom" message marked as deleted in step 3 fails to remove it from the message list
3) Clicking on the message marked as deleted in step 3 results in a "Could not load message from server" error, because it no longer actually exists on the server
To recover from this condition, one must click on a folder, click on the "E-mail" icon in the upper-right toolbar, or reload the page.
I believe that when 'flag_for_deletion' is set in the config file, the behavior of moving messages from one folder to another should mimic the behavior of marking messages for deletion - that is, copy the message to the new folder, but only mark the message in the original folder as deleted. Thus there is no "surprise" expunge during a message move which tramples messages already marked for deletion by the user, and avoids the resulting UI weirdness.
