[PATCH 00/13] Convert notmuch show to use structure printers
authorAustin Clements <amdragon@MIT.EDU>
Wed, 25 Jul 2012 02:34:40 +0000 (22:34 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:48:32 +0000 (09:48 -0800)
d5/3335b37318e949dd53101d96e3ff5d58032c9d [new file with mode: 0644]

diff --git a/d5/3335b37318e949dd53101d96e3ff5d58032c9d b/d5/3335b37318e949dd53101d96e3ff5d58032c9d
new file mode 100644 (file)
index 0000000..73ea376
--- /dev/null
@@ -0,0 +1,91 @@
+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 4CFBC431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 24 Jul 2012 19:35:17 -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 f4ImJcQlrk46 for <notmuch@notmuchmail.org>;\r
+       Tue, 24 Jul 2012 19:35:16 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
+       [18.7.68.37])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1899D431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 24 Jul 2012 19:35:07 -0700 (PDT)\r
+X-AuditID: 12074425-b7f9b6d0000008c4-15-500f5b597f25\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 22.8F.02244.95B5F005; Tue, 24 Jul 2012 22:35:05 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q6P2Z4Bv011168; \r
+       Tue, 24 Jul 2012 22:35:04 -0400\r
+Received: from drake.dyndns.org\r
+       (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [209.6.116.242]) (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 q6P2Z2Vn025114\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Tue, 24 Jul 2012 22:35:03 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1StrRE-0004Yh-RN; Tue, 24 Jul 2012 22:35:00 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 00/13] Convert notmuch show to use structure printers\r
+Date: Tue, 24 Jul 2012 22:34:40 -0400\r
+Message-Id: <1343183693-17134-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFlrKIsWRmVeSWpSXmKPExsUixCmqrBsZzR9gMOUSt8XehnZGi+s3ZzI7\r
+       MHks3rSfzePZqlvMAUxRXDYpqTmZZalF+nYJXBl3X0xhLNjCUfFxy2P2BsYHbF2MnBwSAiYS\r
+       6z6uYIawxSQu3FsPFOfiEBLYxygxZdplJpCEkMAGRolvB50gEo+YJB5N28YM4cxllNh25Q9Y\r
+       O5uAhsS2/csZQWwRAWmJnXdns4LYzAJCEr+u7QCrERZwlbj8tBksziKgKvG/qRfM5hVwkLj3\r
+       4CErxBnyEk/v97FNYORdwMiwilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdCLzezRC81pXQTIyg0\r
+       2F1UdzBOOKR0iFGAg1GJh/fXE74AIdbEsuLK3EOMkhxMSqK8FcH8AUJ8SfkplRmJxRnxRaU5\r
+       qcWHGCU4mJVEeIvCgHK8KYmVValF+TApaQ4WJXHeGyk3/YUE0hNLUrNTUwtSi2CyMhwcShK8\r
+       rVFAjYJFqempFWmZOSUIaSYOTpDhPEDDWUFqeIsLEnOLM9Mh8qcYFaXEebVBEgIgiYzSPLhe\r
+       WOy+YhQHekWYtxmkigcY93Ddr4AGMwENfh7GBzK4JBEhJdXA6L3M+0Sg0JmjbOsy590TuMu+\r
+       dNvlHcVcr/7MurrkhvdpsZaJzdpXlrw9NZNpzebPz533sVWLzXm+Z8PSTWt/hj1Z18B+Jced\r
+       kafI+q5bq9q7Iu8WnX4XvZwzgeqbzq1Uu/tk30HbCPdF+t/FTm08wrn8X9LisOdC/S0vFx0M\r
+       03yX3i3moGPaKabEUpyRaKjFXFScCACwMJJIuAIAAA==\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: Wed, 25 Jul 2012 02:35:17 -0000\r
+\r
+This patch series converts notmuch show to use the new structure\r
+printer infrastructure, cleaning up the code and paving the way to\r
+easily support other structure types.  There are a lot of patches, but\r
+most of them are small and the conversion is very mechanical.\r
+\r
+The first three patches set up prerequisites by making the test\r
+infrastructure more resilient to irrelevant JSON changes and by\r
+introducing a new method to the sprinter.  The next three patches\r
+introduce sprinters to notmuch show and feed them through all of its\r
+layers, though they remain unused.  The remaining patches work their\r
+way back up from the leaves of the JSON printer all the way to\r
+do_show, converting each layer to use the sprinter.  By doing this\r
+conversion from the leaves of the structure up, the output remains\r
+valid and the tests continue to pass at every step.\r
+\r
+The full series has been tested with both GMime 2.4 and GMime 2.6.\r
+\r
+The first two patches together and the third patch alone stand on\r
+their own and could be pushed before the rest of the series if\r
+desired.\r
+\r