summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 4c3c64767..66e6fa76b 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -515,6 +515,9 @@ class rcube_imap
// not very performant but more precise (using UNDELETED)
$index = $this->_search_index($mailbox, $search_str);
$count = is_array($index) ? count($index) : 0;
+
+ if ($mode == 'ALL')
+ $_SESSION['maxuid'][$mailbox] = $index ? $this->_id2uid(max($index)) : 0;
}
else {
if ($mode == 'UNSEEN')