]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch-reply.c: Handle munged `Reply-To' headers.
authorJed Brown <jed@59A2.org>
Sat, 28 Nov 2009 23:19:36 +0000 (00:19 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 4 Feb 2010 20:10:43 +0000 (12:10 -0800)
Some mailing lists engage in the evil practice of changing the Reply-To
header so that replies from all mailers go to the list by default, at
the expense of not responding to the person who actually sent the
message.  When this is detected, we reply to `From' and remove the
duplicate response to the mailing list.  Consider a reply to the
following message.

  From: Some User <some.user@example.com>
  To: Sample users list <sample-users@sample.org>
Reply-To: Sample users list <sample-users@sample.org>
Prior to this patch, `notmuch reply' produces

  To: Sample users list <sample-users@sample.org>,
      Sample users list <sample-users@sample.org>

and after the patch,

  To: Some User <some.user@example.com>,
      Sample users list <sample-users@sample.org>

Signed-off-by: Jed Brown <jed@59A2.org>

No differences found