]> git.cworth.org Git - obsolete/notmuch-old/commit
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)
commitfddd3d831b6a34a47b1e68fcaa1bc63d54240df5
tree8c36368508db4cb10f339949e573b725f9f5dabf
parentfb50f31048272c6b055f9e1bb049fcf18a92310e
notmuch-reply.c: Handle munged `Reply-To' headers.

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>
notmuch-reply.c