diff --git a/CHANGELOG b/CHANGELOG index c3af3f182..5593c45ac 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ CHANGELOG RoundCube Webmail - Fix inline images handling when replying/forwarding html messages - Allow and use spellcheck attribute for input/textarea fields (#1485060) - Added icons for forwarded/forwarded+replied messages (#1485257) +- Added Reply-To to forwarded emails (#1485315) 2008/09/15 (thomasb) ---------- diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 151b46146..7995b34bf 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -543,11 +543,14 @@ function rcmail_create_forward_body($body, $bodyIsHtml) if (!$bodyIsHtml) { - $prefix = sprintf("\n\n\n-------- Original Message --------\nSubject: %s\nDate: %s\nFrom: %s\nTo: %s\n\n", - $MESSAGE->subject, - $MESSAGE->headers->date, - $MESSAGE->get_header('from'), - $MESSAGE->get_header('to')); + $prefix = "\n\n\n-------- Original Message --------\n"; + $prefix .= 'Subject: ' . $MESSAGE->subject . "\n"; + $prefix .= 'Date: ' . $MESSAGE->headers->date . "\n"; + $prefix .= 'From: ' . $MESSAGE->get_header('from') . "\n"; + $prefix .= 'To: ' . $MESSAGE->get_header('to') . "\n"; + if ($MESSAGE->headers->replyto && $MESSAGE->headers->replyto != $MESSAGE->headers->from) + $prefix .= 'Reply-To: ' . $MESSAGE->get_header('replyto') . "\n"; + $prefix .= "\n"; } else { @@ -557,12 +560,17 @@ function rcmail_create_forward_body($body, $bodyIsHtml) "