[Svn] r5195 - in branches/release-0.6: . program/include program/js

trac at roundcube.net trac at roundcube.net
Thu Sep 8 17:16:56 CEST 2011


Author: alec
Date: 2011-09-08 10:16:56 -0500 (Thu, 08 Sep 2011)
New Revision: 5195

Modified:
   branches/release-0.6/CHANGELOG
   branches/release-0.6/program/include/rcube_imap.php
   branches/release-0.6/program/js/app.js
Log:
- Merge r5194 from trunk


Modified: branches/release-0.6/CHANGELOG
===================================================================
--- branches/release-0.6/CHANGELOG	2011-09-08 14:45:26 UTC (rev 5194)
+++ branches/release-0.6/CHANGELOG	2011-09-08 15:16:56 UTC (rev 5195)
@@ -1,6 +1,10 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix bug where message list filter was reset on folder compacting (#1488076)
+
+RELEASE 0.6-RC
+--------------
 - jQuery 1.6.3
 - Fallback to mail_domain in LDAP variable replacements; added 'host' to 'user_create' hook arguments (#1488024)
 - Fixed wrong vCard type parameter mobile (#1488067)

Modified: branches/release-0.6/program/include/rcube_imap.php
===================================================================
--- branches/release-0.6/program/include/rcube_imap.php	2011-09-08 14:45:26 UTC (rev 5194)
+++ branches/release-0.6/program/include/rcube_imap.php	2011-09-08 15:16:56 UTC (rev 5195)
@@ -418,7 +418,7 @@
     function set_search_set($str=null, $msgs=null, $charset=null, $sort_field=null, $threads=false, $sorted=false)
     {
         if (is_array($str) && $msgs == null)
-            list($str, $msgs, $charset, $sort_field, $threads) = $str;
+            list($str, $msgs, $charset, $sort_field, $threads, $sorted) = $str;
         if ($msgs === false)
             $msgs = array();
         else if ($msgs != null && !is_array($msgs))

Modified: branches/release-0.6/program/js/app.js
===================================================================
--- branches/release-0.6/program/js/app.js	2011-09-08 14:45:26 UTC (rev 5194)
+++ branches/release-0.6/program/js/app.js	2011-09-08 15:16:56 UTC (rev 5195)
@@ -995,14 +995,14 @@
         this.select_all_mode = false;
 
         if (s && this.env.mailbox)
-          this.list_mailbox(this.env.mailbox);
+          this.list_mailbox(this.env.mailbox, 1);
         else if (s && this.task == 'addressbook') {
           if (this.env.source == '') {
             for (n in this.env.address_sources) break;
             this.env.source = n;
             this.env.group = '';
           }
-          this.list_contacts(this.env.source, this.env.group);
+          this.list_contacts(this.env.source, this.env.group, 1);
         }
         break;
 
@@ -2795,14 +2795,15 @@
 
   this.expunge_mailbox = function(mbox)
   {
-    var lock = false,
-      url = '_mbox='+urlencode(mbox);
+    var lock, url = '_mbox='+urlencode(mbox);
 
     // lock interface if it's the active mailbox
     if (mbox == this.env.mailbox) {
-       lock = this.set_busy(true, 'loading');
-       url += '&_reload=1';
-     }
+      lock = this.set_busy(true, 'loading');
+      url += '&_reload=1';
+      if (this.env.search_request)
+        url += '&_search='+this.env.search_request;
+    }
 
     // send request to server
     this.http_post('expunge', url, lock);

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



More information about the Svn mailing list