From 38dbd8022b63adfd4ff4e5eb3eb5706d8bc9def2 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 19 Jan 2015 16:08:42 +0100 Subject: Fix bug where Reply-To address was ignored on reply to messages sent by self (#1490233) --- CHANGELOG | 1 + program/steps/mail/compose.inc | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f7d9619f5..be9337907 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,7 @@ CHANGELOG Roundcube Webmail - Fix so "set as default" option is hidden if identities_level > 1 (#1490226) - Fix bug where search was reset after returning from compose visited for reply - Fix javascript error in "IE 8.0/Tablet PC" browser (#1490210) +- Fix bug where Reply-To address was ignored on reply to messages sent by self (#1490233) RELEASE 1.1-rc -------------- diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index d4db232ea..1731a4822 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -322,13 +322,18 @@ foreach ($parts as $header) { $fvalue = $mailfollowup; else if ($mailreplyto) $fvalue = $mailreplyto; - else if (!empty($MESSAGE->headers->replyto)) - $fvalue = $MESSAGE->headers->replyto; + else if (!empty($MESSAGE->headers->replyto)) { + $fvalue = $MESSAGE->headers->replyto; + $replyto = true; + } else if (!empty($MESSAGE->headers->from)) $fvalue = $MESSAGE->headers->from; // Reply to message sent by yourself (#1487074, #1489230) - if (!empty($ident) && in_array($ident['ident'], array($fvalue, $MESSAGE->headers->from))) { + // Reply-To address need to be unset (#1490233) + if (!empty($ident) && empty($replyto) + && in_array($ident['ident'], array($fvalue, $MESSAGE->headers->from)) + ) { $fvalue = $MESSAGE->headers->to; } } -- cgit v1.2.3