[Svn] r3308 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Wed Mar 3 09:41:38 CET 2010


Author: alec
Date: 2010-03-03 02:41:37 -0600 (Wed, 03 Mar 2010)
New Revision: 3308

Modified:
   trunk/roundcubemail/program/steps/mail/check_recent.inc
Log:
- fix order of messages added by check_recent


Modified: trunk/roundcubemail/program/steps/mail/check_recent.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/check_recent.inc	2010-03-02 22:31:11 UTC (rev 3307)
+++ trunk/roundcubemail/program/steps/mail/check_recent.inc	2010-03-03 08:41:37 UTC (rev 3308)
@@ -62,8 +62,10 @@
         $search_str .= ' '.$IMAP->search_string;
 
       if ($IMAP->search($mbox_name, $search_str, NULL, 'date')) {
+        // revert sort order
+        $order = $_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] == 'DESC' ? 'ASC' : 'DESC';
         // get the headers and add them to the list
-        $result_h = $IMAP->list_headers($mbox_name, 1, 'date', 'DESC');
+        $result_h = $IMAP->list_headers($mbox_name, 1, 'date', $order);
         rcmail_js_message_list($result_h, true, false);
       }
     }

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



More information about the Svn mailing list