From 4a7a861912e7b7353a5575fe7217be3626a8dfef Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Tue, 21 Jan 2014 11:19:02 -0500
Subject: [PATCH] Apply the right flags for searching in all folders

---
 program/js/app.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 6753721..1cbc36a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4108,11 +4108,11 @@
   };
 
   // send remote request to search mail or contacts
-  this.qsearch = function(value, mods)
+  this.qsearch = function(value)
   {
     if (value != '') {
       var r, lock = this.set_busy(true, 'searching'),
-        url = this.search_params(value, null, mods);
+        url = this.search_params(value);
 
       if (this.message_list)
         this.clear_message_list();
@@ -4140,8 +4140,8 @@
   {
     var n, url = {}, mods_arr = [],
       mods = this.env.search_mods,
-      mbox = this.env.mailbox,
-      scope = this.env.search_scope || 'base';
+      scope = this.env.search_scope || 'base',
+      mbox = scope == 'all' ? '*' : this.env.mailbox;
 
     if (!filter && this.gui_objects.search_filter)
       filter = this.gui_objects.search_filter.value;

--
Gitblit v1.9.1