From 1e35de45a2f7af6dc57522484c3f4996752a2e21 Mon Sep 17 00:00:00 2001 From: Xu Wang Date: Mon, 15 Jun 2015 14:32:09 +2000 Subject: [PATCH] Re: search query "replytoid:" --- 99/54487a2be38f8cb57037c2b85e7d9dcd0ded01 | 102 ++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 99/54487a2be38f8cb57037c2b85e7d9dcd0ded01 diff --git a/99/54487a2be38f8cb57037c2b85e7d9dcd0ded01 b/99/54487a2be38f8cb57037c2b85e7d9dcd0ded01 new file mode 100644 index 000000000..1e00303b7 --- /dev/null +++ b/99/54487a2be38f8cb57037c2b85e7d9dcd0ded01 @@ -0,0 +1,102 @@ +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 6C5116DE141E + for ; Sun, 14 Jun 2015 11:32:15 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.567 +X-Spam-Level: +X-Spam-Status: No, score=-0.567 tagged_above=-999 required=5 + tests=[AWL=-0.016, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, + DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, + SPF_PASS=-0.001] 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 tX3JgLDrZahZ for ; + Sun, 14 Jun 2015 11:32:13 -0700 (PDT) +Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com + [209.85.214.171]) + by arlo.cworth.org (Postfix) with ESMTPS id 1F9326DE0B7C + for ; Sun, 14 Jun 2015 11:32:13 -0700 (PDT) +Received: by obbsn1 with SMTP id sn1so50996774obb.1 + for ; Sun, 14 Jun 2015 11:32:11 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:in-reply-to:references:date:message-id:subject:from:to + :content-type; bh=vrmPCVUwWWa04kETQ3s+/reSL1onyNgu764RQi1UXXA=; + b=021jqAdFOpk4YinCo0ULHUnNudKxtrBbm2W3C9ySfB2EBKAprFACmP6KAGQWGIqldx + rfoMjtneqM0GA2/pXD4uXBDpk2x4wFjZvCfC6l84/ECDfUiQddk4STSt/MVcLKRnRRLO + Jndl8e3auz57xrCf+XstAA7CaFBkHvEpPBNyYQQ6KLnT0spgEbj0zanJFsSMfD65PS6U + x0GwkqxzrMvzklO462rhlb2kXvkJ1bSMGHQRPe3KezXug3QFfL6kelkm4dv3tdXe7UnT + ILSomCkLr4dte7TgfnDs21b60ARPoiQgI9DyHuzjz161jQqhwHt0OPDrYqTPvcgK1AtV + 3JNw== +MIME-Version: 1.0 +X-Received: by 10.60.177.73 with SMTP id co9mr20504975oec.5.1434306730055; + Sun, 14 Jun 2015 11:32:10 -0700 (PDT) +Received: by 10.182.241.167 with HTTP; Sun, 14 Jun 2015 11:32:09 -0700 (PDT) +In-Reply-To: <20150614082258.GD17381@chitra.no-ip.org> +References: + + <20150613205552.GC17381@chitra.no-ip.org> + <20150614082258.GD17381@chitra.no-ip.org> +Date: Sun, 14 Jun 2015 14:32:09 -0400 +Message-ID: + +Subject: Re: search query "replytoid:" +From: Xu Wang +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=UTF-8 +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 18:32:15 -0000 + +On Sun, Jun 14, 2015 at 4:22 AM, Suvayu Ali wrote: +> On Sat, Jun 13, 2015 at 10:55:52PM +0200, Suvayu Ali wrote: +>> On Sat, Jun 13, 2015 at 02:47:00PM -0400, Xu Wang wrote: +>> > +>> > Is it possible to search based on which message ID a message +>> > *responds* to? For example, suppose message id is MESSAGEID. I want to +>> > find all emails that responded to MESSAGEID. How to enter such a query +>> > into notmuch? +>> +>> AFAIK, this is not possible. Notmuch does not allow searching special +>> headers. You could probably write a script using the threads output +>> format to get the thread, and then use formail to find the responses. +> +> 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. +> +> Hope this helps, +> +> -- +> Suvayu + +These are exactly what I was looking for! I tried Suvayu's script with +success, and although I did not try the script referenced by David's +email, the goal is exactly my goal and thus it seems it should do as I +would like as well. + +Thank you so very much to you for persisting in helping me, even +despite the lack of clarity in my messages. I highly appreciate you +and your time. + +Happy regards, + +Xu -- 2.26.2