| | |
| | | | program/steps/settings/func.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2007, Roundcube Dev. - Switzerland | |
| | | | Copyright (C) 2005-2007, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | // get identities list and define 'mail' column |
| | | $list = $USER->list_identities(); |
| | | foreach ($list as $idx => $row) |
| | | $list[$idx]['mail'] = trim($row['name'] . ' <' . idn_to_utf8($row['email']) .'>'); |
| | | $list[$idx]['mail'] = trim($row['name'] . ' <' . rcube_idn_to_utf8($row['email']) .'>'); |
| | | |
| | | // get all identites from DB and define list of cols to be displayed |
| | | $plugin = $RCMAIL->plugins->exec_hook('identities_list', array( |
| | |
| | | } |
| | | |
| | | $RCMAIL->imap_connect(); |
| | | $threading_supported = $RCMAIL->imap->get_capability('thread=references') |
| | | || $RCMAIL->imap->get_capability('thread=orderedsubject') |
| | | || $RCMAIL->imap->get_capability('thread=refs'); |
| | | $threading_supported = $RCMAIL->imap->get_capability('THREAD'); |
| | | |
| | | if (!isset($no_override['autoexpand_threads']) && $threading_supported) { |
| | | $field_id = 'rcmfd_autoexpand_threads'; |
| | |
| | | $select_autoexpand_threads->add(rcube_label('expand_only_unread'), 2); |
| | | |
| | | $blocks['main']['options']['autoexpand_threads'] = array( |
| | | 'title' => html::label($field_id, Q(rcube_label('autoexpand_threads'))), |
| | | 'content' => $select_autoexpand_threads->show($config['autoexpand_threads']), |
| | | 'title' => html::label($field_id, Q(rcube_label('autoexpand_threads'))), |
| | | 'content' => $select_autoexpand_threads->show($config['autoexpand_threads']), |
| | | ); |
| | | } |
| | | |
| | |
| | | $blocks['main']['options']['dsn_default'] = array( |
| | | 'title' => html::label($field_id, Q(rcube_label('reqdsn'))), |
| | | 'content' => $input_dsn->show($config['dsn_default']?1:0), |
| | | ); |
| | | } |
| | | |
| | | if (!isset($no_override['reply_same_folder'])) { |
| | | $field_id = 'rcmfd_reply_same_folder'; |
| | | $input_reply_same_folder = new html_checkbox(array('name' => '_reply_same_folder', 'id' => $field_id, 'value' => 1)); |
| | | |
| | | $blocks['main']['options']['reply_same_folder'] = array( |
| | | 'title' => html::label($field_id, Q(rcube_label('replysamefolder'))), |
| | | 'content' => $input_reply_same_folder->show($config['reply_same_folder']?1:0), |
| | | ); |
| | | } |
| | | |
| | |
| | | return $skins; |
| | | } |
| | | |
| | | |
| | | // register UI objects |
| | | $OUTPUT->add_handlers(array( |
| | | 'prefsframe' => 'rcmail_preferences_frame', |
| | |
| | | 'identitieslist' => 'rcmail_identities_list', |
| | | )); |
| | | |
| | | // register action aliases |
| | | $RCMAIL->register_action_map(array( |
| | | 'folders' => 'folders.inc', |
| | | 'rename-folder' => 'folders.inc', |
| | | 'delete-folder' => 'folders.inc', |
| | | 'subscribe' => 'folders.inc', |
| | | 'unsubscribe' => 'folders.inc', |
| | | 'purge' => 'folders.inc', |
| | | 'folder-size' => 'folders.inc', |
| | | 'add-identity' => 'edit_identity.inc', |
| | | )); |