--- /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 arlo.cworth.org (Postfix) with ESMTP id 961EC6DE1A05\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Apr 2015 16:11:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.728\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.728 tagged_above=-999 required=5 tests=[AWL=0.728]\r
+ 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 VkKCWeSg80iI for <notmuch@notmuchmail.org>;\r
+ Fri, 3 Apr 2015 16:11:36 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id C02896DE19FD\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Apr 2015 16:11:35 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1YeAjW-0002Mc-Qu; Fri, 03 Apr 2015 23:10:38 +0000\r
+Received: (nullmailer pid 7585 invoked by uid 1000); Fri, 03 Apr 2015\r
+ 23:10:21 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] test/thread-order: more robust loop exit in case of\r
+ broken input\r
+In-Reply-To: <1427643036-7171-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1427643036-7171-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.19+96~g703c8f9 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 04 Apr 2015 08:10:21 +0900\r
+Message-ID: <87twww4xlu.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: tomi.ollila@iki.fi\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: Fri, 03 Apr 2015 23:11:37 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> When creating $THREADS data it may end of not having 'None' at all\r
+> or the numbers in line output yields a loop.\r
+>\r
+\r
+pushed,\r
+\r
+d\r