diff --git a/lib/Horde/Imap/Client/Base.php b/lib/Horde/Imap/Client/Base.php index 6d596992e..2e2c02fed 100644 --- a/lib/Horde/Imap/Client/Base.php +++ b/lib/Horde/Imap/Client/Base.php @@ -3993,9 +3993,8 @@ protected function _condstoreSync() $vanished = $this->vanished($this->_selected, $modseq, array( 'ids' => $uids_ob )); - $disappear = array_diff($uids_ob->ids, $vanished->ids); - if (!empty($disappear)) { - $this->_deleteMsgs($this->_selected, $this->getIdsOb($disappear)); + if (!empty($vanished->ids)) { + $this->_deleteMsgs($this->_selected, $this->getIdsOb($vanished->ids)); } $mbox_ob->sync = true;