summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-08 11:22:14 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-08 11:22:14 +0000
commit8878e4d05717c0e0cb4396e374c6c2ca74db6473 (patch)
tree1f00436f6b30f24ef0c0380e2091a4a8b2f3018c /roundcubemail/program/steps
parentcf14ed186f2a175db9d8894f51c3186e077f7017 (diff)
- Fix so folders with \Noinferiors attribute aren't listed in parent selector
- Add LIST result and folder attributes cache - rcmail_render_folder_tree_select(): fix 'exceptions' parameter, add 'skip_noinferiors' option git-svn-id: https://svn.roundcube.net/trunk@5398 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/settings/edit_folder.inc3
-rw-r--r--roundcubemail/program/steps/settings/folders.inc4
2 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/settings/edit_folder.inc b/roundcubemail/program/steps/settings/edit_folder.inc
index 36a4b28ba..e9566f7aa 100644
--- a/roundcubemail/program/steps/settings/edit_folder.inc
+++ b/roundcubemail/program/steps/settings/edit_folder.inc
@@ -119,7 +119,8 @@ function rcmail_folder_form($attrib)
'realnames' => false,
'maxlength' => 150,
'unsubscribed' => true,
- 'exceptions' => array($mbox_imap),
+ 'skip_noinferiors' => true,
+ 'exceptions' => array($mbox_imap),
));
$form['props']['fieldsets']['location']['content']['path'] = array(
diff --git a/roundcubemail/program/steps/settings/folders.inc b/roundcubemail/program/steps/settings/folders.inc
index 206f62c60..77cbb5571 100644
--- a/roundcubemail/program/steps/settings/folders.inc
+++ b/roundcubemail/program/steps/settings/folders.inc
@@ -283,8 +283,8 @@ function rcube_subscription_form($attrib)
}
if (!$protected) {
- $opts = $IMAP->mailbox_options($folder['id']);
- $noselect = in_array('\\Noselect', $opts);
+ $attrs = $IMAP->mailbox_attributes($folder['id']);
+ $noselect = in_array('\\Noselect', $attrs);
}
$disabled = (($protected && $subscribed) || $noselect);