From 5eb21494a07f7c900b1870ff6e2c459656b247d5 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 28 Oct 1998 00:30:03 +0000 Subject: [PATCH] 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. --- send.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); } -- 2.40.0