Index: /trunk/roundcubemail/index.php
===================================================================
--- /trunk/roundcubemail/index.php	(revision 2338)
+++ /trunk/roundcubemail/index.php	(revision 2339)
@@ -184,4 +184,5 @@
     'display-attachment' => 'attachments.inc',
     'upload' => 'attachments.inc',
+    'check-recent' => 'check_recent.inc',
   ),
   
Index: /trunk/roundcubemail/program/steps/mail/check_recent.inc
===================================================================
--- /trunk/roundcubemail/program/steps/mail/check_recent.inc	(revision 2338)
+++ /trunk/roundcubemail/program/steps/mail/check_recent.inc	(revision 2339)
@@ -67,5 +67,5 @@
     }
   }
-  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));
   }
