diff options
author | alecpl <alec@alec.pl> | 2009-02-02 10:45:32 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-02-02 10:45:32 +0000 |
commit | 2e1809e550e8768b73c2fcccb78f39ffe24615cf (patch) | |
tree | a71207f203461f0165e57bca6e2c0c9ec812720e /program/js | |
parent | 441a1038afd3e1e12d631c7c2855d628b74e26ec (diff) |
- Fix checking for recent messages on various IMAP servers (#1485702)
- performance fix: Don't fetch quota and recent messages in "message view" mode
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 5a2539968..399eaea77 100644 --- a/program/js/app.js +++ b/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); }; |