--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 76CC5431FC4\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 17:43:28 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id MNrsA70ps4PY for <notmuch@notmuchmail.org>;\r
+ Mon, 13 May 2013 17:43:28 -0700 (PDT)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 1AEC3431FC2\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 17:43:28 -0700 (PDT)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+ by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id r4E0hRBn014058;\r
+ Mon, 13 May 2013 21:43:27 -0300\r
+Received: from remotemail by tesseract.cs.unb.ca with local (Exim 4.80)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1Uc3Kw-0003gH-OP; Mon, 13 May 2013 21:43:26 -0300\r
+Received: (nullmailer pid 10110 invoked by uid 1000);\r
+ Tue, 14 May 2013 00:43:24 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] lib/database.cc: change how the parent of a message\r
+ is calculated\r
+In-Reply-To: <1362540709-28765-2-git-send-email-aaronecay@gmail.com>\r
+References: <87ppzfzxuk.fsf@zancas.localnet>\r
+ <1362540709-28765-1-git-send-email-aaronecay@gmail.com>\r
+ <1362540709-28765-2-git-send-email-aaronecay@gmail.com>\r
+User-Agent: Notmuch/0.15.2+69~g360c3c8 (http://notmuchmail.org) Emacs/24.2.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Mon, 13 May 2013 21:43:24 -0300\r
+Message-ID: <87d2sugzmb.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Tue, 14 May 2013 00:43:28 -0000\r
+\r
+Aaron Ecay <aaronecay@gmail.com> writes:\r
+\r
+> Presently, the code which finds the parent of a message as it is being\r
+> added to the database assumes that the first Message-ID-like substring\r
+> of the In-Reply-To header is the parent Message ID. Some mail\r
+> clients, however, put stuff other than the Message-ID of the parent in\r
+> the In-Reply-To header, such as the email address of the sender of the\r
+> parent. This can fool notmuch.\r
+>\r
+\r
+Pushed both, with a certain amount of hacking on the test patch.\r
+\r
+d\r