diff options
author | alecpl <alec@alec.pl> | 2008-09-03 11:41:05 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-03 11:41:05 +0000 |
commit | 7003206d64c83534f29d1eb9dfc53edf993baf5b (patch) | |
tree | 92d8be9e23e048bf6b22981008b6550662cf590c /program/steps/mail | |
parent | 97e9d16e30de446fe04c9963997e336d432046ef (diff) |
- Fix Reply-To header displaying (#1485314)
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/func.inc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 7607cccd3..70cd2c45e 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -742,21 +742,28 @@ function rcmail_message_headers($attrib, $headers=NULL) $out = '<table' . $attrib_str . ">\n"; // show these headers - $standard_headers = array('subject', 'from', 'organization', 'to', 'cc', 'bcc', 'reply-to', 'date'); + $standard_headers = array('subject', 'from', 'organization', 'to', 'cc', 'bcc', 'replyto', 'date'); foreach ($standard_headers as $hkey) { if (!$headers[$hkey]) continue; - if ($hkey=='date' && !empty($headers[$hkey])) + if ($hkey == 'date') { if ($PRINT_MODE) $header_value = format_date($headers[$hkey], $CONFIG['date_long'] ? $CONFIG['date_long'] : 'x'); else $header_value = format_date($headers[$hkey]); } - else if (in_array($hkey, array('from', 'to', 'cc', 'bcc', 'reply-to'))) + else if ($hkey == 'replyto') + { + if ($headers['replyto'] != $headers['from']) + $header_value = Q(rcmail_address_string($headers['replyto'], null, true, $attrib['addicon']), 'show'); + else + continue; + } + else if (in_array($hkey, array('from', 'to', 'cc', 'bcc'))) $header_value = Q(rcmail_address_string($headers[$hkey], null, true, $attrib['addicon']), 'show'); else $header_value = Q($IMAP->decode_header($headers[$hkey])); |