diff options
author | alecpl <alec@alec.pl> | 2009-09-23 19:01:53 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-09-23 19:01:53 +0000 |
commit | 93a88c95b7415206b0c8d742f8914c7ecc193e11 (patch) | |
tree | b029aff510eb18a5555b89693408797782527e2d /program/include/main.inc | |
parent | cb9fc852cf39d91dfa1dc915073914fd153e774a (diff) |
- Prevent from setting INBOX as any of special folders (#1486114)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index a99504cf5..97a3db16c 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1152,11 +1152,12 @@ function rcmail_mailbox_select($p = array()) { global $RCMAIL; - $p += array('maxlength' => 100, 'relanames' => false); + $p += array('maxlength' => 100, 'realnames' => false); $a_mailboxes = array(); foreach ($RCMAIL->imap->list_mailboxes() as $folder) - rcmail_build_folder_tree($a_mailboxes, $folder, $RCMAIL->imap->get_hierarchy_delimiter()); + if (empty($p['exceptions']) || !in_array($folder, $p['exceptions'])) + rcmail_build_folder_tree($a_mailboxes, $folder, $RCMAIL->imap->get_hierarchy_delimiter()); $select = new html_select($p); |