diff options
author | alecpl <alec@alec.pl> | 2011-11-08 11:22:14 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-08 11:22:14 +0000 |
commit | aa07b2290640061a65c9f90d5f30cfc5d4ada195 (patch) | |
tree | ae52bc09831b5eac9facb0153d50d51b699594a2 /program/steps | |
parent | 06744da24100473aa8180cf07ec1970987d2f66b (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
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/settings/edit_folder.inc | 3 | ||||
-rw-r--r-- | program/steps/settings/folders.inc | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/program/steps/settings/edit_folder.inc b/program/steps/settings/edit_folder.inc index 36a4b28ba..e9566f7aa 100644 --- a/program/steps/settings/edit_folder.inc +++ b/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/program/steps/settings/folders.inc b/program/steps/settings/folders.inc index 206f62c60..77cbb5571 100644 --- a/program/steps/settings/folders.inc +++ b/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); |