From 485c69d8123b076dc6543a7b8e7623476199b6a4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 14 Nov 2011 12:42:38 -0500
Subject: [PATCH] - Don't consider \Noselect flag when building folders tree (#1488004)

---
 CHANGELOG                |    1 +
 program/include/main.inc |    5 -----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 7e3a4f9..4641795 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Don't consider \Noselect flag when building folders tree (#1488004)
 - Fix sorting autocomplete results (#1488084)
 - Add option to set session name (#1486433)
 - Add option to skip alternative email addresses in autocompletion
diff --git a/program/include/main.inc b/program/include/main.inc
index 83b3087..c84e5ad 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1281,11 +1281,6 @@
   $path .= $prefix.$currentFolder;
 
   if (!isset($arrFolders[$currentFolder])) {
-    // Check \Noselect attribute (if attributes are in cache)
-    if (!$virtual && ($attrs = $RCMAIL->imap->mailbox_attributes($path))) {
-      $virtual = in_array('\\Noselect', $attrs);
-    }
-
     $arrFolders[$currentFolder] = array(
       'id' => $path,
       'name' => rcube_charset_convert($currentFolder, 'UTF7-IMAP'),

--
Gitblit v1.9.1