--- /dev/null
+Return-Path: <cworth@cworth.org>\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 50CB9431FD0\r
+ for <notmuch@notmuchmail.org>; Mon, 23 May 2011 10:17:28 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+ tests=[T_MIME_NO_TEXT=0.01] 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 0rhO7fXSfS-G for <notmuch@notmuchmail.org>;\r
+ Mon, 23 May 2011 10:17:27 -0700 (PDT)\r
+Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
+ by olra.theworths.org (Postfix) with ESMTP id BDC9D431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 23 May 2011 10:17:27 -0700 (PDT)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id C7ED329A518;\r
+ Mon, 23 May 2011 10:17:25 -0700 (PDT)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+ id 6F6BC254183; Mon, 23 May 2011 10:17:25 -0700 (PDT)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Patrick Totzke <patricktotzke@googlemail.com>, notmuch@notmuchmail.org\r
+Subject: Re: a python terminal gui?\r
+In-Reply-To: <20110521185037.GA13447@brick>\r
+References: <1305888097-sup-2343@optimusprime>\r
+ <87pqndoww8.fsf@yoom.home.cworth.org>\r
+ <20110521185037.GA13447@brick>\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
+ (i486-pc-linux-gnu)\r
+Date: Mon, 23 May 2011 10:17:20 -0700\r
+Message-ID: <87lixxnxpb.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha1; protocol="application/pgp-signature"\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: Mon, 23 May 2011 17:17:28 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sat, 21 May 2011 19:50:37 +0100, Patrick Totzke <patricktotzke@googlemai=\r
+l.com> wrote:\r
+> That is surprising! I only fill the screen by iterating over an initial\r
+> part of the iterator returned by Query.search_threads()\r
+> I do a second query to count the messages by Query.count_messages(),\r
+> but I'd guess that this translates to some sort of "SELECT COUNT"\r
+> and should also be fast. Maybe there's some copying going on=20\r
+> at lower levels?\r
+\r
+The "count" operation should be something very fast, yes.\r
+\r
+It might be worth some investigation to see if there's actually a\r
+problem here or not.\r
+\r
+> > * The '/' key didn't seem to do anything for me, so I wasn't able to\r
+> > actually do any custom searches.\r
+> This is because it really is "\" :P that was a typo in the README.\r
+\r
+Ah. Thanks. That definitely helps.\r
+\r
+> Thanks, that's helpful. I guess it would make sense to place this under\r
+> notmuch/contrib at a later point if it gets usable.\r
+\r
+Sure. I'll be glad to do that. Just let me know when you want it.\r
+\r
+> Ah I have question regarding "toplevel" messages in threads:\r
+> How can it be that a mail that is not the one that started a thread\r
+> is contained in thread.get_toplevel_messages() ?\r
+> The only thing I can think of is that a user somehow forced two threads\r
+> to become one. Take this very thread for example. Why do I get\r
+> Mueen Nawaz's reply as a toplevel message? does this mean\r
+> that messages header has incorrect Reply-to headers set?\r
+\r
+Hmmm... I do seem to be seeing that behavior.\r
+\r
+The message from Mueen Nawaz (id:"87y620subn.fsf@fester.com") does not\r
+have any In-Reply-To header, but it does contain the following:\r
+\r
+ References: <1305888097-sup-2343@optimusprime>\r
+\r
+which is the correct message ID for the original top-level message in\r
+the thread.\r
+\r
+So it looks like there's a bug here in notmuch not correctly stitching\r
+this message to its parent in this case. It should be an easy test case\r
+to add to the suite (and hopefully an easy bug to fix as well).\r
+\r
+=2DCarl\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk3alqAACgkQ6JDdNq8qSWhd/wCfTzmRMA5MNSp6o8KBnSO3nLt1\r
+MAIAnRN7CD1zs+v2TV7lApt6LEvJBtEw\r
+=JSDk\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r