From: Michael M Slusarz Date: Mon, 15 Mar 2010 19:51:17 +0000 (-0600) Subject: Ignore Reply-List address if it is the same as To/Reply-To X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=13a872233cc7fc6235a4b5a9fc15e6cf485af9cb;p=horde.git Ignore Reply-List address if it is the same as To/Reply-To --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 28af5ffa8..d11504a95 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1349,12 +1349,16 @@ class IMP_Compose } if (!is_null($list_info) && !empty($list_info['reply_list'])) { - $header['to'] = $list_info['reply_list']; + /* If To/Reply-To and List-Reply address are the same, no need + * to handle these address separately. */ + if (Horde_Mime_Address::bareAddress($list_info['reply_list']) != Horde_Mime_Address::bareAddress($header['to'])) { + $header['to'] = $list_info['reply_list']; + $reply_type = 'reply_list'; + } + if ($type == '*') { $all_headers['reply_list'] = $header; } - - $reply_type = 'reply_list'; } elseif (in_array($type, array('reply_all', 'reply_auto', '*'))) { /* Clear the To field if we are auto-determining addresses. */ if ($type == 'reply_auto') {