|
|
@ -169,14 +169,15 @@ else if ($msg_uid = $COMPOSE['param']['uid']) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$config_show_sig = $RCMAIL->config->get('show_sig', 1);
|
|
|
|
$config_show_sig = $RCMAIL->config->get('show_sig', 1);
|
|
|
|
if ($config_show_sig == 1)
|
|
|
|
if ($compose_mode == RCUBE_COMPOSE_EDIT || $compose_mode == RCUBE_COMPOSE_DRAFT) {
|
|
|
|
|
|
|
|
// don't add signature in draft/edit mode, we'll also not remove the old-one
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ($config_show_sig == 1)
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
else if ($config_show_sig == 2 && (empty($compose_mode) || $compose_mode == RCUBE_COMPOSE_EDIT || $compose_mode == RCUBE_COMPOSE_DRAFT))
|
|
|
|
else if ($config_show_sig == 2 && empty($compose_mode))
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
else if ($config_show_sig == 3 && ($compose_mode == RCUBE_COMPOSE_REPLY || $compose_mode == RCUBE_COMPOSE_FORWARD))
|
|
|
|
else if ($config_show_sig == 3 && ($compose_mode == RCUBE_COMPOSE_REPLY || $compose_mode == RCUBE_COMPOSE_FORWARD))
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
$OUTPUT->set_env('show_sig', true);
|
|
|
|
else
|
|
|
|
|
|
|
|
$OUTPUT->set_env('show_sig', false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set line length for body wrapping
|
|
|
|
// set line length for body wrapping
|
|
|
|
$LINE_LENGTH = $RCMAIL->config->get('line_length', 72);
|
|
|
|
$LINE_LENGTH = $RCMAIL->config->get('line_length', 72);
|
|
|
@ -741,8 +742,10 @@ function rcmail_compose_part_body($part, $isHtml = false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
// try to remove the signature
|
|
|
|
// try to remove the signature
|
|
|
|
if ($RCMAIL->config->get('strip_existing_sig', true)) {
|
|
|
|
if ($compose_mode != RCUBE_COMPOSE_DRAFT && $compose_mode != RCUBE_COMPOSE_EDIT) {
|
|
|
|
$body = rcmail_remove_signature($body);
|
|
|
|
if ($RCMAIL->config->get('strip_existing_sig', true)) {
|
|
|
|
|
|
|
|
$body = rcmail_remove_signature($body);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// add HTML formatting
|
|
|
|
// add HTML formatting
|
|
|
|
$body = rcmail_plain_body($body);
|
|
|
|
$body = rcmail_plain_body($body);
|
|
|
@ -773,8 +776,10 @@ function rcmail_compose_part_body($part, $isHtml = false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// try to remove the signature
|
|
|
|
// try to remove the signature
|
|
|
|
if ($RCMAIL->config->get('strip_existing_sig', true)) {
|
|
|
|
if ($compose_mode != RCUBE_COMPOSE_DRAFT && $compose_mode != RCUBE_COMPOSE_EDIT) {
|
|
|
|
$body = rcmail_remove_signature($body);
|
|
|
|
if ($RCMAIL->config->get('strip_existing_sig', true)) {
|
|
|
|
|
|
|
|
$body = rcmail_remove_signature($body);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|