summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-02 10:45:32 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-02 10:45:32 +0000
commit4e3d5a92de84112ea6446691917f09ca0ed74424 (patch)
treedf0820de3120af4f18ff6f88573a75e3cc79920a /roundcubemail/program/js/app.js
parent7076dded3d13a5c88a3a3789eeb552ecf20b7d16 (diff)
- Fix checking for recent messages on various IMAP servers (#1485702)
- performance fix: Don't fetch quota and recent messages in "message view" mode git-svn-id: https://svn.roundcube.net/trunk@2269 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 5a2539968..399eaea77 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3971,7 +3971,16 @@ function rcube_webmail()
if (setbusy)
this.set_busy(true, 'checkingmail');
- this.http_request('check-recent', (this.env.search_request ? '_search='+this.env.search_request+'&' : '') + '_t='+(new Date().getTime()), true);
+ var addurl = '_t=' + (new Date().getTime());
+
+ if (this.gui_objects.messagelist)
+ addurl += '&_list=1';
+ if (this.gui_objects.quotadisplay)
+ addurl += '&_quota=1';
+ if (this.env.search_request)
+ addurl += '&_search=' + this.env.search_request;
+
+ this.http_request('check-recent', addurl, true);
};