diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-07 07:53:01 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-07 07:53:01 +0000 |
| commit | 5faf94e01714e4b4e724187b0b81fa5a239b4982 (patch) | |
| tree | 8ec10bf72a85116e1c10a95f653a223ca4eb5e6c /roundcubemail/program/include | |
| parent | c5ff2013b3e84229d55323f2b13e9cdf404c9fa2 (diff) | |
- Fix roundcube hangs on empty inbox with bincimapd (#1486093)
git-svn-id: https://svn.roundcube.net/trunk@2929 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 3d8cb84b8..f1729311b 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2228,8 +2228,10 @@ class rcube_imap $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) { $h_index = iil_C_FetchHeaderIndex($this->conn, $mailbox, "1:*", 'UID', $this->skip_deleted); |
