From: Thomas Roessler Date: Wed, 28 Oct 1998 00:30:03 +0000 (+0000) Subject: if reply-to points to the address on the from header, use the from X-Git-Tag: mutt-0-94-15-rel~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eb21494a07f7c900b1870ff6e2c459656b247d5;p=mutt if reply-to points to the address on the from header, use the from header's value for composing a reply's recipient list, not the reply-to header. --- diff --git a/send.c b/send.c index b2c1bdcf..a0da8437 100644 --- 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); }