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