]> granicus.if.org Git - mutt/commitdiff
if reply-to points to the address on the from header, use the from
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 28 Oct 1998 00:30:03 +0000 (00:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 28 Oct 1998 00:30:03 +0000 (00:30 +0000)
header's value for composing a reply's recipient list, not the
reply-to header.

send.c

diff --git a/send.c b/send.c
index b2c1bdcf7ebef44158f6f6ab9a6232721082896f..a0da84377425275dda069beab235c64735f5b9aa 100644 (file)
--- a/send.c
+++ b/send.c
@@ -404,13 +404,19 @@ static int default_to (ADDRESS **to, ENVELOPE *env, int group)
   }
   else if (env->reply_to)
   {
-    if (option (OPTIGNORELISTREPLYTO) &&
+    if (mutt_addrcmp (env->from, env->reply_to) || 
+       (option (OPTIGNORELISTREPLYTO) &&
        mutt_is_mail_list (env->reply_to) &&
        (mutt_addrsrc (env->reply_to, env->to) ||
-       mutt_addrsrc (env->reply_to, env->cc)))
+       mutt_addrsrc (env->reply_to, env->cc))))
     {
       /* If the Reply-To: address is a mailing list, assume that it was
        * put there by the mailing list, and use the From: address
+       * 
+       * We also take the from header if our correspondant has a reply-to
+       * header which is identical to the electronic mail address given
+       * in his From header.
+       * 
        */
       rfc822_append (to, env->from);
     }