Make optional adding of standard signature separator - sig_separator (#1487768)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Make optional adding of standard signature separator - sig_separator (#1487768) |
| | | - Optimize folder_size() on Cyrus IMAP by using special folder annotation (#1490514) |
| | | - Make optional hidding of folders with name starting with a dot - imap_skip_hidden_folders (#1490468) |
| | | - Add option to enable HTML editor always, except when replying to plain text messages (#1489365) |
| | |
| | | // the signature below the quoted text (sig_below = true). |
| | | $config['sig_below'] = false; |
| | | |
| | | // Enables adding of standard separator to the signature |
| | | $config['sig_separator'] = true; |
| | | |
| | | // Use MIME encoding (quoted-printable) for 8bit characters in message body |
| | | $config['force_7bit'] = false; |
| | | |
| | |
| | | $labels['replyandforwardonly'] = 'replies and forwards only'; |
| | | $labels['insertsignature'] = 'Insert signature'; |
| | | $labels['sigbelow'] = 'Place signature below the quoted message'; |
| | | $labels['sigseparator'] = 'Force standard separator in signatures'; |
| | | $labels['previewpanemarkread'] = 'Mark previewed messages as read'; |
| | | $labels['afternseconds'] = 'after $n seconds'; |
| | | $labels['reqmdn'] = 'Always request a return receipt'; |
| | |
| | | $top_posting = intval($RCMAIL->config->get('reply_mode')) > 0 |
| | | && !$RCMAIL->config->get('sig_below') |
| | | && ($COMPOSE['mode'] == RCUBE_COMPOSE_REPLY || $COMPOSE['mode'] == RCUBE_COMPOSE_FORWARD); |
| | | |
| | | $separator = $top_posting ? '---' : '-- '; |
| | | $add_separator = (bool) $RCMAIL->config->get('sig_separator'); |
| | | |
| | | $field_attrib['onchange'] = rcmail_output::JS_OBJECT_NAME.".change_identity(this)"; |
| | | $select_from = new html_select($field_attrib); |
| | |
| | | |
| | | if ($sql_arr['html_signature']) { |
| | | $text = $RCMAIL->html2text($html, array('links' => false)); |
| | | $text = trim($text); |
| | | $text = trim($text, "\r\n"); |
| | | } |
| | | else { |
| | | $t2h = new rcube_text2html($text, false); |
| | | $html = $t2h->get_html(); |
| | | } |
| | | |
| | | if (!preg_match('/^--[ -]\r?\n/m', $text)) { |
| | | $text = $separator . "\n" . $text; |
| | | if ($add_separator && !preg_match('/^--[ -]\r?\n/m', $text)) { |
| | | $text = $separator . "\n" . ltrim($text, "\r\n"); |
| | | $html = $separator . "<br>" . $html; |
| | | } |
| | | |
| | |
| | | ); |
| | | } |
| | | |
| | | if (!isset($no_override['sig_separator'])) { |
| | | if (!$current) { |
| | | continue 2; |
| | | } |
| | | |
| | | $field_id = 'rcmfd_sig_separator'; |
| | | $input = new html_checkbox(array('name' => '_sig_separator', 'id' => $field_id, 'value' => 1)); |
| | | |
| | | $blocks['sig']['options']['sig_separator'] = array( |
| | | 'title' => html::label($field_id, rcube::Q($RCMAIL->gettext('sigseparator'))), |
| | | 'content' => $input->show($RCMAIL->config->get('sig_separator') ? 1 : 0), |
| | | ); |
| | | } |
| | | |
| | | if (!isset($no_override['forward_attachment'])) { |
| | | if (!$current) { |
| | | continue 2; |
| | |
| | | 'reply_mode' => isset($_POST['_reply_mode']) ? intval($_POST['_reply_mode']) : 0, |
| | | 'sig_below' => isset($_POST['_sig_below']) ? true : false, |
| | | 'strip_existing_sig' => isset($_POST['_strip_existing_sig']), |
| | | 'sig_separator' => isset($_POST['_sig_separator']) ? true : false, |
| | | 'default_font' => rcube_utils::get_input_value('_default_font', rcube_utils::INPUT_POST), |
| | | 'default_font_size' => rcube_utils::get_input_value('_default_font_size', rcube_utils::INPUT_POST), |
| | | 'reply_all_mode' => intval($_POST['_reply_all_mode']), |