Re: notmuch-reply doesn't use Reply-To
authorDamien Cassou <damien@cassou.me>
Fri, 4 Dec 2015 16:40:42 +0000 (17:40 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:06 +0000 (14:50 -0700)
89/df29d9d22574bc115e7d0673f0c98c69aa58c4 [new file with mode: 0644]

diff --git a/89/df29d9d22574bc115e7d0673f0c98c69aa58c4 b/89/df29d9d22574bc115e7d0673f0c98c69aa58c4
new file mode 100644 (file)
index 0000000..3f807dd
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <damien@bender.ldn-fai.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 95EB76DE173C\r
+ for <notmuch@notmuchmail.org>; Fri,  4 Dec 2015 08:40:54 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.299\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.299 tagged_above=-999 required=5 tests=[AWL=0.241,\r
+  RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id i6WM5rrbRU0U for <notmuch@notmuchmail.org>;\r
+ Fri,  4 Dec 2015 08:40:49 -0800 (PST)\r
+Received: from bender.ldn-fai.net (bender.ldn-fai.net [80.67.188.162])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 5F4276DE1704\r
+ for <notmuch@notmuchmail.org>; Fri,  4 Dec 2015 08:40:49 -0800 (PST)\r
+From: Damien Cassou <damien@cassou.me>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: notmuch-reply doesn't use Reply-To\r
+In-Reply-To: <8737vi8l7j.fsf@zancas.localnet>\r
+References: <8737vjcx9b.fsf@cassou.me> <8737vi8l7j.fsf@zancas.localnet>\r
+Date: Fri, 04 Dec 2015 17:40:42 +0100\r
+Message-ID: <87fuzi9ng5.fsf@cassou.me>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 04 Dec 2015 16:40:54 -0000\r
+\r
+David Bremner <david@tethera.net> writes:\r
+\r
+> Damien Cassou <damien@cassou.me> writes:\r
+>\r
+>>                    "To" : "rmod@inria.fr",\r
+>>                    "Reply-To" : "rmod@inria.fr",\r
+>>                    "From" : "seaside@rmod.inria.fr",\r
+>>                    "Subject" : "[rmod] [Mm10s] 2015-11-30",\r
+>>                    "Date" : "Mon, 30 Nov 2015 07:00:01 +0100"\r
+>\r
+> A quick look at the code suggests this is falling victim to the\r
+> "reply-to munging" detection code, which considers a reply-to field\r
+> redudant if it duplicates one of the other fields. From the source\r
+>\r
+>     /* Some mailing lists munge the Reply-To header despite it being A Bad\r
+>      * Thing, see http://www.unicom.com/pw/reply-to-harmful.html\r
+>      *\r
+>      * The munging is easy to detect, because it results in a\r
+>      * redundant reply-to header, (with an address that already exists\r
+>      * in either To or Cc). So in this case, we ignore the Reply-To\r
+>      * field and use the From header. This ensures the original sender\r
+>      * will get the reply even if not subscribed to the list. Note\r
+>      * that the address in the Reply-To header will always appear in\r
+>      * the reply.\r
+>      */\r
+\r
+\r
+The last sentence seems to contradict my example:\r
+\r
+    Note that the address in the Reply-To header will always appear in\r
+    the reply.\r
+\r
+Here is the reply message, and it does not contain the address in Reply-To.\r
+\r
+    $ notmuch reply --reply-to=sender --format=json "id:565be5e1.X5p1I6XirRudvMa6%seaside@rmod.inria.fr" | json_pp\r
+    {\r
+       "reply-headers" : {\r
+          "References" : "<565be5e1.X5p1I6XirRudvMa6%seaside@rmod.inria.fr>",\r
+          "Subject" : "Re: [rmod] [Mm10s] 2015-11-30",\r
+          "To" : "seaside@rmod.inria.fr",\r
+          "From" : "Damien Cassou <damien.cassou@inria.fr>",\r
+          "In-reply-to" : "<565be5e1.X5p1I6XirRudvMa6%seaside@rmod.inria.fr>"\r
+\r
+-- \r
+Damien Cassou\r
+http://damiencassou.seasidehosting.st\r
+\r
+"Success is the ability to go from one failure to another without\r
+losing enthusiasm." --Winston Churchill\r