--- /dev/null
+Return-Path: <pieter@praet.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 698F4431FCB\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:52 -0800 (PST)\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 VxcLOroVrelk for <notmuch@notmuchmail.org>;\r
+ Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+ [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 33C78431FAF\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
+Received: by wibhi8 with SMTP id hi8so3113628wib.26\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:49 -0800 (PST)\r
+Received-SPF: pass (google.com: domain of pieter@praet.org designates\r
+ 10.180.80.8 as permitted sender) client-ip=10.180.80.8; \r
+Authentication-Results: mr.google.com;\r
+ spf=pass (google.com: domain of pieter@praet.org\r
+ designates 10.180.80.8 as permitted sender)\r
+ smtp.mail=pieter@praet.org\r
+Received: from mr.google.com ([10.180.80.8])\r
+ by 10.180.80.8 with SMTP id n8mr11956072wix.14.1329685129072 (num_hops\r
+ = 1); Sun, 19 Feb 2012 12:58:49 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.180.80.8 with SMTP id n8mr10018589wix.14.1329685129012;\r
+ Sun, 19 Feb 2012 12:58:49 -0800 (PST)\r
+Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be.\r
+ [81.242.218.104])\r
+ by mx.google.com with ESMTPS id dr5sm29453491wib.0.2012.02.19.12.58.48\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sun, 19 Feb 2012 12:58:48 -0800 (PST)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: David Edmondson <dme@dme.org>\r
+Subject: [PATCH 1/3] test: emacs: toggle processing of cryptographic MIME\r
+ parts in `notmuch-show'\r
+Date: Sun, 19 Feb 2012 21:56:28 +0100\r
+Message-Id: <1329684990-12504-2-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.8.1\r
+In-Reply-To: <1329684990-12504-1-git-send-email-pieter@praet.org>\r
+References: <1328688139-3865-1-git-send-email-dme@dme.org>\r
+ <1329684990-12504-1-git-send-email-pieter@praet.org>\r
+X-Gm-Message-State:\r
+ ALoCoQnoYsM1JOjjF6dTMU9nOc85AthTrlqJgSwyvpuXPttUKwQzcWuyeSEp2F/egKVYeFr/8vZ8\r
+Cc: Notmuch Mail <notmuch@notmuchmail.org>\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: Sun, 19 Feb 2012 20:58:53 -0000\r
+\r
+See commit 19ec74c5.\r
+---\r
+ test/emacs | 20 ++++++++++++\r
+ .../notmuch-show-process-crypto-mime-parts-off | 31 +++++++++++++++++++\r
+ .../notmuch-show-process-crypto-mime-parts-on | 32 ++++++++++++++++++++\r
+ 3 files changed, 83 insertions(+), 0 deletions(-)\r
+ create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off\r
+ create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index b74cfa9..b207d20 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -534,4 +534,24 @@ counter=$(test_emacs \\r
+ )\r
+ test_expect_equal "$counter" 2\r
+ \r
++test_begin_subtest "notmuch-show: don't process cryptographic MIME parts"\r
++test_emacs '(let ((notmuch-crypto-process-mime nil))\r
++ (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")\r
++ (test-visible-output))'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-off\r
++\r
++test_begin_subtest "notmuch-show: process cryptographic MIME parts"\r
++test_emacs '(let ((notmuch-crypto-process-mime t))\r
++ (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")\r
++ (test-visible-output))'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on\r
++\r
++test_begin_subtest "notmuch-show: process cryptographic MIME parts (w/ notmuch-show-toggle-process-crypto)"\r
++test_emacs '(let ((notmuch-crypto-process-mime nil))\r
++ (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")\r
++ (notmuch-show-toggle-process-crypto)\r
++ (test-visible-output))'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on\r
++\r
++\r
+ test_done\r
+diff --git a/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off\r
+new file mode 100644\r
+index 0000000..076083a\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off\r
+@@ -0,0 +1,31 @@\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
++Subject: [notmuch] Working with Maildir storage?\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
++ Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
++ Subject: Re: [notmuch] Working with Maildir storage?\r
++ To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
++ Cc: notmuch@notmuchmail.org\r
++ Date: Tue, 17 Nov 2009 15:33:01 -0500\r
++\r
++ [ multipart/mixed ]\r
++ [ multipart/signed ]\r
++ [ text/plain ]\r
++ > See the patch just posted here.\r
++\r
++ Is the list archived anywhere? The obvious archives\r
++ (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
++ think I subscribed too late to get the patch (I only just saw the\r
++ discussion about it).\r
++\r
++ It doesn't look like the patch is in git yet.\r
++\r
++ -- Lars\r
++\r
++ [ 4-line signature. Click/Enter to show. ]\r
++ [ application/pgp-signature ]\r
++ [ text/plain ]\r
++ [ 4-line signature. Click/Enter to show. ]\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
++ Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)\r
++ Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
++ Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
+diff --git a/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on\r
+new file mode 100644\r
+index 0000000..588f38f\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on\r
+@@ -0,0 +1,32 @@\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
++Subject: [notmuch] Working with Maildir storage?\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
++ Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
++ Subject: Re: [notmuch] Working with Maildir storage?\r
++ To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
++ Cc: notmuch@notmuchmail.org\r
++ Date: Tue, 17 Nov 2009 15:33:01 -0500\r
++\r
++ [ multipart/mixed ]\r
++ [ multipart/signed ]\r
++ [ Unknown key ID 0xD74695063141ACD8 or unsupported algorithm ]\r
++ [ text/plain ]\r
++ > See the patch just posted here.\r
++\r
++ Is the list archived anywhere? The obvious archives\r
++ (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
++ think I subscribed too late to get the patch (I only just saw the\r
++ discussion about it).\r
++\r
++ It doesn't look like the patch is in git yet.\r
++\r
++ -- Lars\r
++\r
++ [ 4-line signature. Click/Enter to show. ]\r
++ [ application/pgp-signature ]\r
++ [ text/plain ]\r
++ [ 4-line signature. Click/Enter to show. ]\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
++ Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)\r
++ Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
++ Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
+-- \r
+1.7.8.1\r
+\r