summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-05 12:57:58 +0000
committeralecpl <alec@alec.pl>2010-03-05 12:57:58 +0000
commita4f77800443173a73ff05a172ac6b0dd4d5e9a42 (patch)
treebabc60a3f454bb2539f6efb28d3bee154004fe3f /program/include/rcube_imap.php
parente576f25578eb1e38ea2484ade0e74ac317827485 (diff)
- Fix check_recent action when skip_deleted=true (#1486535)
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')