--- /dev/null
+Return-Path: <xuwang762@gmail.com>\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 EFB346DE0948\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 20:56:04 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.578\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.578 tagged_above=-999 required=5\r
+ tests=[AWL=-0.008, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 sk0gcM1Ktz0y for <notmuch@notmuchmail.org>;\r
+ Sat, 13 Jun 2015 20:56:02 -0700 (PDT)\r
+Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com\r
+ [209.85.218.46])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 221926DE0350\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 20:56:02 -0700 (PDT)\r
+Received: by oial131 with SMTP id l131so7950080oia.3\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 20:56:01 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
+ :content-type; bh=eRNUvmX2Mn1M3eXFNjpbn6pjuQfZq0PKa3Jgiq2+YBE=;\r
+ b=NGN8crGmFg2VA9zbzH8ZKrEAeCPa3XcFQlTQJQwFMmFBUGNupwFD9MxBNRrbSEsSDx\r
+ pBjWVIJxTtUBC/UQWVFNyCCHDBTD1+V9OQeR+m17OAHTe9mmOkbsf5pM590IL5g1YWYd\r
+ mwtQ1vMVboEPPfCJHFMgopDRhTAmG8rkSMHqZEuKdLNww4uHsKRcucYmvusZlEuW2shG\r
+ uEBhCRqkg7mVgIdNu29AvDcU1TVC+B4VN2J2w4WCP/pDIBO32mnaydaag8QS/LYHYRjU\r
+ 8v1VvFuO04066QA2KPolP7PXJPCuimyqllskxtKxZZd/UqdzsRh54eT81SjMemQM5ZCc\r
+ XUOA==\r
+MIME-Version: 1.0\r
+X-Received: by 10.202.229.66 with SMTP id c63mr4263865oih.57.1434254161161;\r
+ Sat, 13 Jun 2015 20:56:01 -0700 (PDT)\r
+Received: by 10.182.241.167 with HTTP; Sat, 13 Jun 2015 20:56:01 -0700 (PDT)\r
+In-Reply-To: <877fr79upd.fsf@maritornes.cs.unb.ca>\r
+References:\r
+ <CAJhTkNhYew6H-bptACTew3gN3DLWg6agTYu8hAkdwFS=z4VFWg@mail.gmail.com>\r
+ <877fr79upd.fsf@maritornes.cs.unb.ca>\r
+Date: Sat, 13 Jun 2015 23:56:01 -0400\r
+Message-ID:\r
+ <CAJhTkNh4L_zRa0sjkh6vcETVxo_Hy3+ceEPuxeZP3xEG=a1Otg@mail.gmail.com>\r
+Subject: Re: search query "replytoid:<blah>"\r
+From: Xu Wang <xuwang762@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\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 03:56:05 -0000\r
+\r
+On Sat, Jun 13, 2015 at 5:14 PM, David Bremner <david@tethera.net> wrote:\r
+> Xu Wang <xuwang762@gmail.com> writes:\r
+>\r
+>> Dear all,\r
+>>\r
+>> Is it possible to search based on which message ID a message\r
+>> *responds* to? For example, suppose message id is MESSAGEID. I want to\r
+>> find all emails that responded to MESSAGEID. How to enter such a query\r
+>> into notmuch?\r
+>\r
+> Threads aren't exactly the concept you ask for, because the include the\r
+> messages before the message-id in question as well. Nonetheless, maybe\r
+> the following helps:\r
+>\r
+>\r
+> % notmuch show $(notmuch search --output=threads $MESAGEID)\r
+>\r
+> or\r
+>\r
+> % notmuch search --output=messages $(notmuch search --output=threads $MESAGEID)\r
+\r
+Dear David and Suvayu,\r
+\r
+Thank you for your ideas. My goal is to do something like the following:\r
+notmuch search tag:reply-required and not tag:replied\r
+\r
+which was discussed here:\r
+http://notmuchmail.org/pipermail/notmuch/2010/002558.html\r
+\r
+However, instead of conditioning on tag:reply-required, I would like\r
+to look at this for a specific message. For example, if I write an\r
+important message, I can do the following:\r
+save the message id, and then in 5 days set a cron script to check\r
+whether my message was responded to. If it was not responded to I will\r
+take some action to notify myself (haven't decided what yet).\r
+It is the "If it was not responded to" part that this email thread is\r
+about. I am now realizing that I cannot use mutt's tag "replied"\r
+because I often send and read email from gmail or other IMap clients\r
+(e.g. phone). Because of this (I believe), the reply tag does not get\r
+set when it should (well not "should" but rather "when I want it to").\r
+For example, I often have\r
+\r
+abc\r
+->def\r
+ -> ghi\r
+\r
+where the message def does not have the "replied" tag, even though it\r
+was replied to (ghi replied to it). I think the reason is what I\r
+suggested above.\r
+\r
+Because I cannot use the "replied" tag (unless I have misunderstood),\r
+I thought I could just check using the message id with 'notmuch search\r
+repliedto:<messageid>', but Suvayu points out that searching for this\r
+is not supported.\r
+\r
+Kind regards,\r
+\r
+Xu\r