summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_imap_generic.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-07-10 12:34:38 +0200
committerAleksander Machniak <alec@alec.pl>2013-07-10 12:34:38 +0200
commitbd284693027196517545616883d5cc43a3f0d39e (patch)
treed3b35aa7d7463a96cc86e3ec6eb54b6470eff4e7 /program/lib/Roundcube/rcube_imap_generic.php
parent801babced9216a7e3f4272dadf9922fe01c0e048 (diff)
Simplified logic of finding non-existent but subscribed folders. Should be more reliable and (might be) faster now.
Diffstat (limited to 'program/lib/Roundcube/rcube_imap_generic.php')
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php
index e3ef8b9bb..920c7184a 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -1333,9 +1333,8 @@ class rcube_imap_generic
$folders[$mailbox] = array();
}
- // store LSUB options only if not empty, this way
- // we can detect a situation when LIST doesn't return specified folder
- if (!empty($opts) || $cmd == 'LIST') {
+ // store folder options
+ if ($cmd == 'LIST') {
// Add to options array
if (empty($this->data['LIST'][$mailbox]))
$this->data['LIST'][$mailbox] = $opts;