[Svn] r1917 - in trunk/roundcubemail/program: js steps/mail

trac at roundcube.net trac at roundcube.net
Thu Oct 2 19:26:16 CEST 2008


Author: alec
Date: 2008-10-02 12:26:16 -0500 (Thu, 02 Oct 2008)
New Revision: 1917

Modified:
   trunk/roundcubemail/program/js/app.js
   trunk/roundcubemail/program/steps/mail/getunread.inc
Log:
- small improvement in getunread.inc + fix: don't call msglist_select() for getunread and check-recent actions


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2008-10-02 13:57:08 UTC (rev 1916)
+++ trunk/roundcubemail/program/js/app.js	2008-10-02 17:26:16 UTC (rev 1917)
@@ -2112,7 +2112,7 @@
 
 	if (this.env.signatures[id])
 	  {
-	  newsig = this.env.signatures[id]['text'];
+	  newsig = String(this.env.signatures[id]['text']).replace("\n", "\r\n");
 	  htmlsig = this.env.signatures[id]['is_html'];
 	  }
 
@@ -3828,13 +3828,14 @@
       case 'getunread':
       case 'list':
         if (this.task == 'mail') {
-          if (this.message_list)
+          if (this.message_list && request_obj.__action == 'list')
             this.msglist_select(this.message_list);
           this.enable_command('show', 'expunge', 'select-all', 'select-none', 'sort', (this.env.messagecount > 0));
           this.enable_command('purge', this.purge_mailbox_test());
         }
         else if (this.task == 'addressbook')
           this.enable_command('export', (this.contact_list && this.contact_list.rowcount > 0));
+
         break;
       }
 

Modified: trunk/roundcubemail/program/steps/mail/getunread.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/getunread.inc	2008-10-02 13:57:08 UTC (rev 1916)
+++ trunk/roundcubemail/program/steps/mail/getunread.inc	2008-10-02 17:26:16 UTC (rev 1917)
@@ -23,8 +23,9 @@
 
 if (!empty($a_folders))
 {
+  $inbox = ($IMAP->get_mailbox_name() == 'INBOX');
   foreach ($a_folders as $mbox_row)
-    $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), ($IMAP->get_mailbox_name() == 'INBOX' && $mbox_row == 'INBOX'));
+    $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), $inbox && $mbox_row == 'INBOX');
 }
 
 $OUTPUT->send();

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



More information about the Svn mailing list