diff options
author | alecpl <alec@alec.pl> | 2008-06-11 19:26:08 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-11 19:26:08 +0000 |
commit | d87fc29fee9e629fad49d956a449ae647c0bc142 (patch) | |
tree | 89e1736a554e2b9e38899f979de029d8bbb26741 /program/include/rcube_imap.php | |
parent | 287227502a35aa895c6ec218f3ead6b8bbf27926 (diff) |
- don't call expunge and don't remove message row after message move
if flag_for_deletion is set to true (#1485002)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 9d8f6d314..7f3fd9a1b 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1419,9 +1419,13 @@ class rcube_imap // send expunge command in order to have the moved message // really deleted from the source mailbox if ($moved) { - $this->_expunge($from_mbox, FALSE); - $this->_clear_messagecount($from_mbox); - $this->_clear_messagecount($to_mbox); + // but only when flag_for_deletion is set to false + if (!rcmail::get_instance()->config->get('flag_for_deletion', false)) + { + $this->_expunge($from_mbox, FALSE); + $this->_clear_messagecount($from_mbox); + $this->_clear_messagecount($to_mbox); + } } // moving failed else if (rcmail::get_instance()->config->get('delete_always', false)) { |