From 3870bec7ff891677fd848df8d027171acf921420 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 26 Oct 2010 09:44:39 -0400
Subject: [PATCH] - 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)

---
 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 7e96233..242fb1a 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1356,9 +1356,8 @@
 
   $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);
   }
 

--
Gitblit v1.9.1