1 Return-Path: <xuwang762@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id 6C5116DE141E
\r
6 for <notmuch@notmuchmail.org>; Sun, 14 Jun 2015 11:32:15 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.567 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.016, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
\r
13 DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25,
\r
14 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001,
\r
15 SPF_PASS=-0.001] autolearn=disabled
\r
16 Received: from arlo.cworth.org ([127.0.0.1])
\r
17 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
18 with ESMTP id tX3JgLDrZahZ for <notmuch@notmuchmail.org>;
\r
19 Sun, 14 Jun 2015 11:32:13 -0700 (PDT)
\r
20 Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com
\r
22 by arlo.cworth.org (Postfix) with ESMTPS id 1F9326DE0B7C
\r
23 for <notmuch@notmuchmail.org>; Sun, 14 Jun 2015 11:32:13 -0700 (PDT)
\r
24 Received: by obbsn1 with SMTP id sn1so50996774obb.1
\r
25 for <notmuch@notmuchmail.org>; Sun, 14 Jun 2015 11:32:11 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
\r
28 :content-type; bh=vrmPCVUwWWa04kETQ3s+/reSL1onyNgu764RQi1UXXA=;
\r
29 b=021jqAdFOpk4YinCo0ULHUnNudKxtrBbm2W3C9ySfB2EBKAprFACmP6KAGQWGIqldx
\r
30 rfoMjtneqM0GA2/pXD4uXBDpk2x4wFjZvCfC6l84/ECDfUiQddk4STSt/MVcLKRnRRLO
\r
31 Jndl8e3auz57xrCf+XstAA7CaFBkHvEpPBNyYQQ6KLnT0spgEbj0zanJFsSMfD65PS6U
\r
32 x0GwkqxzrMvzklO462rhlb2kXvkJ1bSMGHQRPe3KezXug3QFfL6kelkm4dv3tdXe7UnT
\r
33 ILSomCkLr4dte7TgfnDs21b60ARPoiQgI9DyHuzjz161jQqhwHt0OPDrYqTPvcgK1AtV
\r
36 X-Received: by 10.60.177.73 with SMTP id co9mr20504975oec.5.1434306730055;
\r
37 Sun, 14 Jun 2015 11:32:10 -0700 (PDT)
\r
38 Received: by 10.182.241.167 with HTTP; Sun, 14 Jun 2015 11:32:09 -0700 (PDT)
\r
39 In-Reply-To: <20150614082258.GD17381@chitra.no-ip.org>
\r
41 <CAJhTkNhYew6H-bptACTew3gN3DLWg6agTYu8hAkdwFS=z4VFWg@mail.gmail.com>
\r
42 <20150613205552.GC17381@chitra.no-ip.org>
\r
43 <20150614082258.GD17381@chitra.no-ip.org>
\r
44 Date: Sun, 14 Jun 2015 14:32:09 -0400
\r
46 <CAJhTkNgDxySBgW1CjLg5WHkLnFaGx+0dUWE+k6HeoPjQid8WKw@mail.gmail.com>
\r
47 Subject: Re: search query "replytoid:<blah>"
\r
48 From: Xu Wang <xuwang762@gmail.com>
\r
49 To: notmuch@notmuchmail.org
\r
50 Content-Type: text/plain; charset=UTF-8
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.18
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Sun, 14 Jun 2015 18:32:15 -0000
\r
65 On Sun, Jun 14, 2015 at 4:22 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
\r
66 > On Sat, Jun 13, 2015 at 10:55:52PM +0200, Suvayu Ali wrote:
\r
67 >> On Sat, Jun 13, 2015 at 02:47:00PM -0400, Xu Wang wrote:
\r
69 >> > Is it possible to search based on which message ID a message
\r
70 >> > *responds* to? For example, suppose message id is MESSAGEID. I want to
\r
71 >> > find all emails that responded to MESSAGEID. How to enter such a query
\r
74 >> AFAIK, this is not possible. Notmuch does not allow searching special
\r
75 >> headers. You could probably write a script using the threads output
\r
76 >> format to get the thread, and then use formail to find the responses.
\r
78 > Try the attached script. It accepts notmuch queries by message id.
\r
79 > E.g. to get the responses to your OP, you can do:
\r
81 > $ ./nm-ack id:CAJhTkNhYew6H-bptACTew3gN3DLWg6agTYu8hAkdwFS=z4VFWg@mail.gmail.com
\r
82 > id:877fr79upd.fsf@maritornes.cs.unb.ca id:20150613205552.GC17381@chitra.no-ip.org
\r
84 > The first one is David's response, the second one is mine.
\r
91 These are exactly what I was looking for! I tried Suvayu's script with
\r
92 success, and although I did not try the script referenced by David's
\r
93 email, the goal is exactly my goal and thus it seems it should do as I
\r
96 Thank you so very much to you for persisting in helping me, even
\r
97 despite the lack of clarity in my messages. I highly appreciate you
\r