diff options
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_imap.inc | 3 |
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 |