diff options
author | alecpl <alec@alec.pl> | 2010-10-26 13:44:39 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-26 13:44:39 +0000 |
commit | 3870bec7ff891677fd848df8d027171acf921420 (patch) | |
tree | 6ecb2eb47f02cf8f8685125cf41e4a132122bac6 /program/include/main.inc | |
parent | 10a6fc58e6e8a40388ffda43f949f69f5ec804dc (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.inc | 5 |
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); } |