summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-04 15:34:32 +0000
committeralecpl <alec@alec.pl>2010-03-04 15:34:32 +0000
commitf1ce5163e5b91ab2efc0eb28eec7091be0144483 (patch)
treeebfd77eb925f9d9dd288855eecf5ba3a8c276031 /program
parenta039c626eef6ad0e6c915d1618fbd0e6e40f57a2 (diff)
- Fix inconsistent behaviour of 'delete_always' option (#1486299)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 307914eef..4c3c64767 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1793,7 +1793,7 @@ class rcube_imap
// move messages
$iil_move = iil_C_Move($this->conn, join(',', $a_uids), $from_mbox, $to_mbox);
$moved = !($iil_move === false || $iil_move < 0);
-
+
// send expunge command in order to have the moved message
// really deleted from the source mailbox
if ($moved) {
@@ -1802,8 +1802,8 @@ class rcube_imap
$this->_clear_messagecount($to_mbox);
}
// moving failed
- else if (rcmail::get_instance()->config->get('delete_always', false)) {
- return iil_C_Delete($this->conn, $from_mbox, join(',', $a_uids));
+ else if ($config->get('delete_always', false) && $tbox == $config->get('trash_mbox')) {
+ return $this->delete_message($a_uids, $fbox);
}
// remove message ids from search set