diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-28 00:30:03 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-28 00:30:03 +0000 |
commit | 5eb21494a07f7c900b1870ff6e2c459656b247d5 (patch) | |
tree | 20e984b12f47f8c06147ccc6aa04cdc94dd26298 /send.c | |
parent | e9db41183e170e2af60274f653dd91d96fd3ec36 (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.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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); } |