summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-28 00:30:03 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-28 00:30:03 +0000
commit5eb21494a07f7c900b1870ff6e2c459656b247d5 (patch)
tree20e984b12f47f8c06147ccc6aa04cdc94dd26298 /send.c
parente9db41183e170e2af60274f653dd91d96fd3ec36 (diff)
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.
Diffstat (limited to 'send.c')
-rw-r--r--send.c10
1 files 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);
}