summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-24 16:45:00 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-24 16:45:00 +0000
commit316b45a2c2c387837d04d1938adaf0560e36c2bb (patch)
tree57bcdbc191025279b1c5669d922cafe9b9aebf96 /roundcubemail/program/include/rcube_imap.php
parent56d537994e2174ff04504bc9c25edf104c51ba14 (diff)
- Fix issue where wrong message sequence range could be generated when it was build according to number of messages in a folder
git-svn-id: https://svn.roundcube.net/trunk@5362 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
-rw-r--r--roundcubemail/program/include/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index e5d2afc11..7ffb17a88 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/program/include/rcube_imap.php
@@ -1508,7 +1508,7 @@ class rcube_imap
// I didn't found that SEARCH should return sorted IDs
if (is_array($a_index))
sort($a_index);
- } else if ($max = $this->_messagecount($mailbox)) {
+ } else if ($max = $this->_messagecount($mailbox, 'ALL', true, false)) {
$a_index = range(1, $max);
}
@@ -1694,7 +1694,7 @@ class rcube_imap
}
if ($orig_criteria == 'ALL') {
- $max = $this->_messagecount($mailbox);
+ $max = $this->_messagecount($mailbox, 'ALL', true, false);
$a_messages = $max ? range(1, $max) : array();
}
else {