[Svn] r2347 - in trunk/roundcubemail: . program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Mar 10 09:09:33 CET 2009


Author: thomasb
Date: 2009-03-10 03:09:33 -0500 (Tue, 10 Mar 2009)
New Revision: 2347

Modified:
   trunk/roundcubemail/index.php
   trunk/roundcubemail/program/steps/mail/check_recent.inc
Log:
Partially reverted r2339 + fix indentation

Modified: trunk/roundcubemail/index.php
===================================================================
--- trunk/roundcubemail/index.php	2009-03-09 21:43:36 UTC (rev 2346)
+++ trunk/roundcubemail/index.php	2009-03-10 08:09:33 UTC (rev 2347)
@@ -183,7 +183,6 @@
     'remove-attachment'  => 'attachments.inc',
     'display-attachment' => 'attachments.inc',
     'upload' => 'attachments.inc',
-    'check-recent' => 'check_recent.inc',
   ),
   
   'addressbook' => array(

Modified: trunk/roundcubemail/program/steps/mail/check_recent.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/check_recent.inc	2009-03-09 21:43:36 UTC (rev 2346)
+++ trunk/roundcubemail/program/steps/mail/check_recent.inc	2009-03-10 08:09:33 UTC (rev 2347)
@@ -28,7 +28,7 @@
       // refresh saved search set
       if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && isset($_SESSION['search'][$search_request])) {
         $_SESSION['search'][$search_request] = $IMAP->refresh_search();
-	$all_count = $IMAP->messagecount();
+        $all_count = $IMAP->messagecount();
       } else {
         $all_count = $IMAP->messagecount(NULL, 'ALL', TRUE);
       }
@@ -62,12 +62,12 @@
         // get the headers
         $result_h = $IMAP->list_headers($mbox_name, 1, 'date', 'DESC');
         // add to the list
-	rcmail_js_message_list($result_h, TRUE);
+        rcmail_js_message_list($result_h, TRUE);
       }
     }
   }
-  else if ($IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) {
-    $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all));
+  else if ($unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) {
+    $OUTPUT->command('set_unread_count', $mbox_name, $unseen);
   }
 }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list