| | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | // WARNING: folder names in UI are encoded with RCMAIL_CHARSET |
| | |
| | | |
| | | // Location (name) |
| | | if ($options['protected']) { |
| | | $foldername = Q(str_replace($delimiter, ' » ', rcmail_localize_folderpath($mbox_imap))); |
| | | $foldername = str_replace($delimiter, ' » ', Q(rcmail_localize_folderpath($mbox_imap))); |
| | | } |
| | | else if ($options['norename']) { |
| | | $foldername = Q($folder); |
| | |
| | | } |
| | | else { |
| | | $selected = isset($_POST['_parent']) ? $_POST['_parent'] : $path_id; |
| | | $exceptions = array($mbox_imap); |
| | | |
| | | // Exclude 'prefix' namespace from parent folders list (#1488349) |
| | | // If INBOX. namespace exists, folders created as INBOX subfolders |
| | | // will be listed at the same level - selecting INBOX as a parent does nothing |
| | | if ($prefix = $storage->get_namespace('prefix')) { |
| | | $exceptions[] = substr($prefix, 0, -1); |
| | | } |
| | | |
| | | $select = rcmail_mailbox_select(array( |
| | | 'name' => '_parent', |
| | | 'noselection' => '---', |
| | |
| | | 'maxlength' => 150, |
| | | 'unsubscribed' => true, |
| | | 'skip_noinferiors' => true, |
| | | 'exceptions' => array($mbox_imap), |
| | | 'exceptions' => $exceptions, |
| | | )); |
| | | |
| | | $form['props']['fieldsets']['location']['content']['path'] = array( |