--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 160C0431FD2\r
+ for <notmuch@notmuchmail.org>; Tue, 3 Jul 2012 15:21:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 fKRBEosuIqiW for <notmuch@notmuchmail.org>;\r
+ Tue, 3 Jul 2012 15:21:06 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
+ [18.9.25.14])\r
+ by olra.theworths.org (Postfix) with ESMTP id 4627C431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 3 Jul 2012 15:21:06 -0700 (PDT)\r
+X-AuditID: 1209190e-b7fb56d0000008b2-5b-4ff370513daf\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+ by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id 68.C6.02226.15073FF4; Tue, 3 Jul 2012 18:21:05 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+ by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q63ML4C0022242; \r
+ Tue, 3 Jul 2012 18:21:04 -0400\r
+Received: from drake.dyndns.org (26-4-182.dynamic.csail.mit.edu [18.26.4.182])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q63ML0Dx023217\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Tue, 3 Jul 2012 18:21:02 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1SmBSu-0007fI-Uw; Tue, 03 Jul 2012 18:21:00 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/8] JSON-based search-mode\r
+Date: Tue, 3 Jul 2012 18:20:51 -0400\r
+Message-Id: <1341354059-29396-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrBIsWRmVeSWpSXmKPExsUixG6nohtY8Nnf4NNHXYsje2axWyw985/Z\r
+ 4vrNmcwWb1bOY3Vg8dg56y67x+GvC1k8nq26xezR9GMxawBLFJdNSmpOZllqkb5dAldG97uj\r
+ 7AWdnBUPOi+zNTAuY+9i5OSQEDCRmPRsHyOELSZx4d56ti5GLg4hgX2MEvsXPGCGcNYzSjQ8\r
+ WcEC4Zxkkug/O5UJpEVIYC6jxJJNfiA2m4CGxLb9y8FGiQhIS+y8O5sVxGYWcJDYcuYMWFxY\r
+ QFvi+smjQCs4OFgEVCVeHVYACfMClfxZ/IAV4gp5iaf3+9gmMPIuYGRYxSibklulm5uYmVOc\r
+ mqxbnJyYl5dapGusl5tZopeaUrqJERRAnJJ8Oxi/HlQ6xCjAwajEw5us8NlfiDWxrLgy9xCj\r
+ JAeTkijvlTygEF9SfkplRmJxRnxRaU5q8SFGCQ5mJRHe1UlAOd6UxMqq1KJ8mJQ0B4uSOO+V\r
+ lJv+QgLpiSWp2ampBalFMFkZDg4lCd7WfKBGwaLU9NSKtMycEoQ0EwcnyHAeoOHZIDW8xQWJ\r
+ ucWZ6RD5U4yKUuK8O0ESAiCJjNI8uF5YhL9iFAd6RZi3E6SKB5gc4LpfAQ1mAhqct/gTyOCS\r
+ RISUVANjXPT2JtG1W8p2vS9h8JFd9ofJdhLn9AdLjypPYp4qMHfWDMu8pp03JO4tvnwye+vV\r
+ HXOnW7xoYBfVFq1kWyHHJd7kwbHva588D4NrwnIWV3Oj7vTrhWsSL6UcfGq6Y+PG2Runh9zp\r
+ Ua/Xsqv+kZm5W6vPrWvr80rT3dslX5/5oONUubha7XKqEktxRqKhFnNRcSIANFQeYMsCAAA=\r
+Cc: tomi.ollila@iki.fi\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, 03 Jul 2012 22:21:07 -0000\r
+\r
+This patch series replaces the text format parser used for search in\r
+Emacs with a parser for the JSON format. This should address the\r
+escaping and flexibility problems that have plagued the text format.\r
+Like the text format, it supports incremental output.\r
+\r
+Patches 1-4 simply clean up the Emacs search code and could be pushed\r
+before the rest of the series. Patch 5 switches to the JSON plist\r
+representation internally, but retains the text parser. This requires\r
+some changes to the text parser to keep things working, but don't get\r
+too hung up on them since it's about to get replaced entirely. Patch\r
+6 adds a test.\r
+\r
+Finally, patches 7 and 8 are the real meat. Patch 7 introduces a\r
+general incremental JSON parser. For search, we could probably get\r
+away with a simpler, hacky approach, but an incremental JSON parser is\r
+the type of thing you only want to write once---hacky or not---and it\r
+seems like the type of thing that could be useful elsewhere, too.\r
+It's general enough to support things like incremental show buffer\r
+rendering.\r
+\r
+Patch 8 rewrites the search output parser to use the JSON format via\r
+this incremental parser.\r
+\r