From d2b8840a0e1c6877716517727ec9e1bbded20733 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 19 Nov 2010 08:45:19 +0000 Subject: - Fix handling of custom "_from" in sendmail (#1487132) - Small fix in displaying Sender input field --- program/steps/mail/compose.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'program/steps/mail/compose.inc') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 3f2b8c5d2..ec9b4ef0d 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -472,7 +472,7 @@ function rcmail_compose_header_from($attrib) $from_id = get_input_value('_from', RCUBE_INPUT_POST); else if (!empty($_SESSION['compose']['param']['from'])) $from_id = $_SESSION['compose']['param']['from']; - else if (count($user_identities) > 1) { + else { $return_path = $MESSAGE->headers->others['return-path']; // Set identity @@ -501,10 +501,11 @@ function rcmail_compose_header_from($attrib) // add signatures to client $OUTPUT->set_env('signatures', $a_signatures); } - else - { + // no identities, display text input field + else { + $field_attrib['class'] = 'from_address'; $input_from = new html_inputfield($field_attrib); - $out = $input_from->show($_POST['_from']); + $out = $input_from->show($from_id); } return $out; -- cgit v1.2.3