--- /dev/null
+Return-Path: <error4me@gmx.de>\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 78CFE6DE141E\r
+ for <notmuch@notmuchmail.org>; Sun, 14 Jun 2015 15:36:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.056\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.056 tagged_above=-999 required=5 tests=[AWL=0.037, \r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001,\r
+ RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001,\r
+ T_FREEMAIL_FORGED_FROMDOMAIN=0.01,\r
+ T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] 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 adFzCeWcB2Jk for <notmuch@notmuchmail.org>;\r
+ Sun, 14 Jun 2015 15:36:47 -0700 (PDT)\r
+X-Greylist: delayed 306 seconds by postgrey-1.35 at arlo;\r
+ Sun, 14 Jun 2015 15:36:47 PDT\r
+Received: from mout.gmx.net (mout.gmx.net [212.227.15.18])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 32C316DE13AB\r
+ for <notmuch@notmuchmail.org>; Sun, 14 Jun 2015 15:36:47 -0700 (PDT)\r
+Received: from boo.workgroup ([87.185.157.93]) by mail.gmx.com (mrgmx001) with\r
+ ESMTPSA (Nemesis) id 0MFcg9-1YqIUJ1LOP-00Ef0Y for\r
+ <notmuch@notmuchmail.org>; Mon, 15 Jun 2015 00:31:38 +0200\r
+Received: from grfz by boo.workgroup with local (Exim 4.84)\r
+ (envelope-from <error4me@gmx.de>)\r
+ id 1Z4GR5-00010e-SA; Mon, 15 Jun 2015 00:31:27 +0200\r
+Date: Mon, 15 Jun 2015 00:30:57 +0200\r
+From: Gregor Zattler <telegraph@gmx.net>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: search query "replytoid:<blah>"\r
+Message-ID: <20150614223057.GB21261@boo.workgroup>\r
+Mail-Followup-To: notmuch <notmuch@notmuchmail.org>\r
+References:\r
+ <CAJhTkNhYew6H-bptACTew3gN3DLWg6agTYu8hAkdwFS=z4VFWg@mail.gmail.com>\r
+ <20150613205552.GC17381@chitra.no-ip.org>\r
+ <20150614082258.GD17381@chitra.no-ip.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: 8bit\r
+In-Reply-To: <20150614082258.GD17381@chitra.no-ip.org>\r
+User-Agent: Mutt/1.5.23 (2014-03-12)\r
+Sender: error4me@gmx.de\r
+X-Provags-ID: V03:K0:guiaY/KuxCei+k0G5En7iUxX3/5RqWMxMMY6RhGSiohuvLT1Pre\r
+ o79Rqsn9Dyxz3BiYAVVDpobGmil4XuSEoxNLnnJfe1iLRZlWcNQSZhCgcrWYCiWWyH/BNET\r
+ 5RWexYWbHwbXQBHinKnrCVFZ01RzQLgD83lkIdWJVRL3LgD7S2bctvAbqgvvCuLK/sjEU79\r
+ 5sZIsVUt1c+2nqPJ2nMEA==\r
+X-UI-Out-Filterresults: notjunk:1;\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 14 Jun 2015 22:36:49 -0000\r
+\r
+Hi Suvayu, notmuch users and developers,\r
+* Suvayu Ali <fatkasuvayu+linux@gmail.com> [14. Jun. 2015]:\r
+> Try the attached script. It accepts notmuch queries by message id.\r
+> E.g. to get the responses to your OP, you can do:\r
+> \r
+> $ ./nm-ack id:CAJhTkNhYew6H-bptACTew3gN3DLWg6agTYu8hAkdwFS=z4VFWg@mail.gmail.com\r
+> id:877fr79upd.fsf@maritornes.cs.unb.ca id:20150613205552.GC17381@chitra.no-ip.org\r
+> \r
+> The first one is David's response, the second one is mine.\r
+\r
+This is a nice script. The very first Message(-Id:) I tried was\r
+replied to by a message with this In-Reply-To: header:\r
+\r
+ In-Reply-To: <7e093509.51e.14ddb300091.Coremail.chxp_moon@163.com> (windy’s\r
+ message of „Wed, 10 Jun 2015 09:57:45 +0800 (CST)“)\r
+\r
+Since the script extracts Message-Id:s from In-Reply-To; headers via\r
+\r
+> function strip_mid() {\r
+> sed -e 's/[<> ]//g'\r
+> }\r
+\r
+the Message-Id:s did not match. I therefore changed this to\r
+\r
+function strip_mid() {\r
+ egrep -a -o "<[^[:space:]<>]+@[^@[:space:]<>]+>"|sed -e 's/[<> ]//g'\r
+}\r
+\r
+this did the trick.\r
+\r
+\r
+Thanx, Gregor\r
+-- \r
+ -... --- .-. . -.. ..--.. ...-.-\r