program/include/rcube_imap.php
@@ -2228,7 +2228,9 @@ $msg_count = $this->_messagecount($mailbox); $cache_count = count($cache_index); // console("Cache check: $msg_count !== ".count($cache_index)); // empty mailbox if (!$msg_count) return $cache_count ? -2 : 1; if ($cache_count==$msg_count) { if ($this->skip_deleted) {