| | |
| | | // get identities list and define 'mail' column |
| | | $list = $USER->list_identities(); |
| | | foreach ($list as $idx => $row) |
| | | $list[$idx]['mail'] = trim($row['name'] . ' <' . $row['email'] .'>'); |
| | | $list[$idx]['mail'] = trim($row['name'] . ' <' . 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( |
| | |
| | | $select_mdn_requests = new html_select(array('name' => '_mdn_requests', 'id' => $field_id)); |
| | | $select_mdn_requests->add(rcube_label('askuser'), 0); |
| | | $select_mdn_requests->add(rcube_label('autosend'), 1); |
| | | $select_mdn_requests->add(rcube_label('autosendknown'), 3); |
| | | $select_mdn_requests->add(rcube_label('ignore'), 2); |
| | | |
| | | $blocks['main']['options']['mdn_requests'] = array( |
| | |
| | | ); |
| | | } |
| | | |
| | | if (!isset($no_override['mdn_default'])) { |
| | | $field_id = 'rcmfd_mdn_default'; |
| | | $input_mdn = new html_checkbox(array('name' => '_mdn_default', 'id' => $field_id, 'value' => 1)); |
| | | |
| | | $blocks['main']['options']['mdn_default'] = array( |
| | | 'title' => html::label($field_id, Q(rcube_label('reqmdn'))), |
| | | 'content' => $input_mdn->show($config['mdn_default']?1:0), |
| | | ); |
| | | } |
| | | |
| | | if (!isset($no_override['top_posting'])) { |
| | | $field_id = 'rcmfd_top_posting'; |
| | | $select_replymode = new html_select(array('name' => '_top_posting', 'id' => $field_id, 'onchange' => "\$('#rcmfd_sig_above').attr('disabled',this.selectedIndex==0)")); |