summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-04-08 13:20:54 +0000
committerthomascube <thomas@roundcube.net>2007-04-08 13:20:54 +0000
commit4379bb3d2d0bd4b0e54b00c3218ba15c0381dc68 (patch)
tree8f10012c36f9b59e7abc47d7709e7d4a39f2da98 /program
parentba033aebc6e13f4ff5c41e21410528902bf80c3c (diff)
Fixed message moving procedure (closes #1484308)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index e07b6086a..3f4f2ebbd 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -1373,7 +1373,8 @@ class rcube_imap
foreach ($a_uids as $uid)
$a_mids[] = $this->_uid2id($uid, $from_mbox);
- $moved = iil_C_Move($this->conn, join(',', $a_mids), $from_mbox, $to_mbox);
+ $iil_move = iil_C_Move($this->conn, join(',', $a_mids), $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