summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-09 21:03:10 +0000
committerrichs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-09 21:03:10 +0000
commit1e2894f27627cd693ee463bfc26abcea6385f96c (patch)
tree0d4a420d59bc032698e2c188bfa295d5d160ad64
parent46b3b3614a3daeb645a5303aa81040d18b555bd3 (diff)
Fixed check-recent [richs]
git-svn-id: https://svn.roundcube.net/trunk@2339 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/index.php1
-rw-r--r--roundcubemail/program/steps/mail/check_recent.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index 172d57c88..fba7e813c 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -183,6 +183,7 @@ $action_map = array(
'remove-attachment' => 'attachments.inc',
'display-attachment' => 'attachments.inc',
'upload' => 'attachments.inc',
+ 'check-recent' => 'check_recent.inc',
),
'addressbook' => array(
diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc
index b85a613b3..438e97bdb 100644
--- a/roundcubemail/program/steps/mail/check_recent.inc
+++ b/roundcubemail/program/steps/mail/check_recent.inc
@@ -66,7 +66,7 @@ foreach ($a_mailboxes as $mbox_name) {
}
}
}
- else if ($IMAP->messagecount($mbox_name, 'RECENT', $check_all)) {
+ else if ($IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) {
$OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all));
}
}