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