| | |
| | | $OUTPUT->set_env('recipients_separator', trim($RCMAIL->config->get('recipients_separator', ','))); |
| | | |
| | | // default font for HTML editor |
| | | $font = rcube_fontdefs($RCMAIL->config->get('default_font', 'Verdana')); |
| | | $font = rcube_fontdefs($RCMAIL->config->get('default_font')); |
| | | if ($font && !is_array($font)) { |
| | | $OUTPUT->set_env('default_font', $font); |
| | | } |
| | |
| | | $fvalue .= $v; |
| | | if ($v = $MESSAGE->headers->cc) |
| | | $fvalue .= (!empty($fvalue) ? $separator : '') . $v; |
| | | if ($v = $MESSAGE->headers->get('Sender', false)) |
| | | // Use Sender header (#1489011) |
| | | if (($v = $MESSAGE->headers->get('Sender', false)) && strpos($v, '-bounces@') === false) |
| | | $fvalue .= (!empty($fvalue) ? $separator : '') . $v; |
| | | |
| | | // When To: and Reply-To: are the same we add From: address to the list (#1489037) |
| | |
| | | if (count($MESSAGE->identities)) |
| | | { |
| | | $a_signatures = array(); |
| | | $identities = array(); |
| | | $separator = intval($RCMAIL->config->get('reply_mode')) > 0 |
| | | && ($compose_mode == RCUBE_COMPOSE_REPLY || $compose_mode == RCUBE_COMPOSE_FORWARD) ? '---' : '-- '; |
| | | |
| | |
| | | $a_signatures[$identity_id]['text'] = $text; |
| | | $a_signatures[$identity_id]['html'] = $html; |
| | | } |
| | | |
| | | // add bcc and reply-to |
| | | if (!empty($sql_arr['reply-to'])) { |
| | | $identities[$identity_id]['replyto'] = $sql_arr['reply-to']; |
| | | } |
| | | if (!empty($sql_arr['bcc'])) { |
| | | $identities[$identity_id]['bcc'] = $sql_arr['bcc']; |
| | | } |
| | | } |
| | | |
| | | $out = $select_from->show($MESSAGE->compose['from']); |
| | | |
| | | // add signatures to client |
| | | $OUTPUT->set_env('signatures', $a_signatures); |
| | | $OUTPUT->set_env('identities', $identities); |
| | | } |
| | | // no identities, display text input field |
| | | else { |
| | |
| | | $body = rcmail_remove_signature($body); |
| | | } |
| | | } |
| | | |
| | | if ($part->ctype_parameters['format'] == 'flowed') { |
| | | $body = rcube_mime::unfold_flowed($body); |
| | | } |
| | | |
| | | // add HTML formatting |
| | | $body = rcmail_plain_body($body); |
| | | if ($body) { |
| | |
| | | if ($part->ctype_primary == 'message' && $compose_mode == RCUBE_COMPOSE_REPLY) { |
| | | continue; |
| | | } |
| | | // skip inline images when forwarding in plain text |
| | | if ($part->content_id && !$bodyIsHtml && $compose_mode == RCUBE_COMPOSE_FORWARD) { |
| | | // skip inline images when forwarding |
| | | if ($part->content_id && $part->disposition == 'inline' && $compose_mode == RCUBE_COMPOSE_FORWARD) { |
| | | continue; |
| | | } |
| | | |