summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-26 13:44:39 +0000
committeralecpl <alec@alec.pl>2010-10-26 13:44:39 +0000
commit3870bec7ff891677fd848df8d027171acf921420 (patch)
tree6ecb2eb47f02cf8f8685125cf41e4a132122bac6 /program/include/main.inc
parent10a6fc58e6e8a40388ffda43f949f69f5ec804dc (diff)
- Add support for selection options from LIST-EXTENDED extension (RFC 5258)
- Don't list subscribed but non-existent folders (#1486225) - Fix \Noselect handling performance (#1487082)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 7e96233bc..242fb1ac3 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1356,9 +1356,8 @@ function rcmail_build_folder_tree(&$arrFolders, $folder, $delm='/', $path='')
$path .= $currentFolder;
- // Check \Noselect option
- if (!$virtual) {
- $opts = $RCMAIL->imap->mailbox_options($path);
+ // Check \Noselect option (if options are in cache)
+ if (!$virtual && ($opts = $RCMAIL->imap->mailbox_options($path))) {
$virtual = in_array('\\Noselect', $opts);
}