--- /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 D075A6DE09FB\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 21:03:24 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.566\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.566 tagged_above=-999 required=5\r
+ tests=[AWL=-0.015, 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_H2=-0.001,\r
+ 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 znL2C1M3W3iG for <notmuch@notmuchmail.org>;\r
+ Sat, 12 Sep 2015 21:03:23 -0700 (PDT)\r
+Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com\r
+ [209.85.218.44])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 128E56DE0275\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 21:03:23 -0700 (PDT)\r
+Received: by oixx17 with SMTP id x17so61715974oix.0\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 21:03:22 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:date:message-id:subject:from:to:content-type;\r
+ bh=AIfUzangb83s2+PDrmdomuhdgXeYnj/nBRXayoe8eSA=;\r
+ b=q5mWAfxkaHm0Vgyfy0wMmUdZBdHIoH84pxFFyNhvtoz2Jk2fKOWaabF9w5Gu8EDNPc\r
+ mHnudYYZznmkfEpjPAXjcKu9C8VCLawxboqIJeXK9v1g4WxJLSh5m99xAHDjrDA+K4Ty\r
+ 2dcf9XPkFmF8/aUgE1TFXBIGBWemQIG09Mw1TPUPMLf67M9tyip/Ygi/juk5Wegil2Ls\r
+ TceG878CnwdSdGThV5OVQ5MxNazAg5ZnS0M5BM+9AiGsQqYEbGRGkZaJPVF4ehZMmN9j\r
+ 63UfI6sN8b4Mze0V2vSbJXvimUS5fYIPdOMy7201VNbPTnkwA2c6VQB841PwYHRrbdv0\r
+ V3OA==\r
+MIME-Version: 1.0\r
+X-Received: by 10.202.64.3 with SMTP id n3mr5296710oia.53.1442117001005; Sat,\r
+ 12 Sep 2015 21:03:21 -0700 (PDT)\r
+Received: by 10.202.212.204 with HTTP; Sat, 12 Sep 2015 21:03:20 -0700 (PDT)\r
+Date: Sun, 13 Sep 2015 00:03:20 -0400\r
+Message-ID:\r
+ <CAJhTkNh7_hXDLsAGyD7nwkXV4ca6ymkLtFG945USvfqK4ZJEdQ@mail.gmail.com>\r
+Subject: Possible some threads are not complete due to bug?\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, 13 Sep 2015 04:03:24 -0000\r
+\r
+Hi,\r
+\r
+Sometimes I need to do:\r
+\r
+$ notmuch search --output=threads "id:MYMSGID"\r
+thread:000000000000a125\r
+$ notmuch search --output=messages "thread:000000000000a125"\r
+\r
+In theory, this should output the message that responded to message ID\r
+"MYMSGID". Sometimes it works. But sometimes it does not work. That\r
+is, there exists an email where I am sure (I checked the raw email)\r
+that there is a header\r
+In-Reply-To: <MYMSGID>\r
+but that email does not show when I do the two commands above.\r
+Indeed, that mail belongs to a different thread ID.\r
+\r
+I am just curious if the above is due to:\r
+\r
+1. My missing of understanding of how notmuch deals with threads\r
+2. A bug or missing feature in notmuch causes some threads to be incomplete\r
+\r
+By the way, my goal is to use Suvayu's script to check if a message\r
+was responded to.\r
+\r
+Kind regards,\r
+\r
+Xu\r