| | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2007, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Provide functionality for user's settings & preferences | |
| | |
| | | ); |
| | | } |
| | | |
| | | $RCMAIL->imap_connect(); |
| | | $threading_supported = $RCMAIL->imap->get_capability('THREAD'); |
| | | $storage = $RCMAIL->get_storage(); |
| | | $threading_supported = $storage->get_capability('THREAD'); |
| | | |
| | | if (!isset($no_override['autoexpand_threads']) && $threading_supported) { |
| | | $field_id = 'rcmfd_autoexpand_threads'; |
| | |
| | | ); |
| | | |
| | | // Configure special folders |
| | | if (!isset($no_override['default_imap_folders'])) { |
| | | |
| | | $RCMAIL->imap_connect(); |
| | | |
| | | if (!isset($no_override['default_folders'])) { |
| | | // load folders list only when needed |
| | | if ($current) { |
| | | $select = rcmail_mailbox_select(array( |
| | |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | $options = $RCMAIL->imap->mailbox_info($mailbox); |
| | | $options = $RCMAIL->get_storage()->folder_info($mailbox); |
| | | $options['protected'] = $options['is_root'] || ($options['special'] && $RCMAIL->config->get('protect_default_folders')); |
| | | |
| | | return $options; |
| | |
| | | { |
| | | global $RCMAIL, $CONFIG, $OUTPUT; |
| | | |
| | | $delimiter = $RCMAIL->imap->get_hierarchy_delimiter(); |
| | | $storage = $RCMAIL->get_storage(); |
| | | $delimiter = $storage->get_hierarchy_delimiter(); |
| | | $name_utf8 = rcube_charset_convert($name, 'UTF7-IMAP'); |
| | | $protected = ($CONFIG['protect_default_folders'] == true && in_array($name, $CONFIG['default_imap_folders'])); |
| | | $protected = ($CONFIG['protect_default_folders'] == true && in_array($name, $CONFIG['default_folders'])); |
| | | |
| | | $foldersplit = explode($delimiter, $RCMAIL->imap->mod_mailbox($name)); |
| | | $foldersplit = explode($delimiter, $storage->mod_folder($name)); |
| | | $level = count($foldersplit) - 1; |
| | | $display_name = str_repeat(' ', $level) |
| | | . Q($protected ? rcmail_localize_foldername($name) : rcube_charset_convert($foldersplit[$level], 'UTF7-IMAP')); |