From: Ethan Glasser-Camp Date: Wed, 17 Oct 2012 23:59:59 +0000 (+2000) Subject: [PATCH 1/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show' X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=369d729cb82409b16523b217a649db9baaab2004;p=notmuch-archives.git [PATCH 1/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show' --- diff --git a/2a/97e53f711c17a51fccce15557fd2813eb25c69 b/2a/97e53f711c17a51fccce15557fd2813eb25c69 new file mode 100644 index 000000000..13bc3b0e2 --- /dev/null +++ b/2a/97e53f711c17a51fccce15557fd2813eb25c69 @@ -0,0 +1,190 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 2D02C431FBD + for ; Wed, 17 Oct 2012 17:00:09 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, 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 zF2lVM3AvoDV for ; + Wed, 17 Oct 2012 17:00:07 -0700 (PDT) +Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com + [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 883DE431FB6 + for ; Wed, 17 Oct 2012 17:00:07 -0700 (PDT) +Received: by mail-vb0-f53.google.com with SMTP id fc21so8260469vbb.26 + for ; Wed, 17 Oct 2012 17:00:06 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; + bh=xHPdGmbv7aYobqU3eS5w6omBRfW1dBzWWBDTR/0WHYg=; + b=ayJ09XNdUV3nZX5u0y86chfLTntOCYM/KW/P6or0FVdzz1if6Uc/cBgYP6v5zz9Srh + lEcbRE937uJLb3nIfsDZ84kYIGMxo9pkZqqtUESzVwR+gpsLtu4XN66fJghzWHt6I8dJ + eVxjrGq0biO76fUFXduDa5ovUh5ANyP1jM2GEJv3JFMulKZ/szus56MES1gme5yNg4ua + gJul3avkxQj10qpO2pob0MFaavIDLl9pU9ECNb1MgPdWY1zKmPxHk/1Oj14u5RzH+7LV + akg8L4pDygL6fwJJNOMyjuuN7oqaKZKxb8P28kok7OvNhnefsL8dleVG1xnMFl8FPVJk + pK0w== +Received: by 10.220.240.135 with SMTP id la7mr2513881vcb.44.1350518406497; + Wed, 17 Oct 2012 17:00:06 -0700 (PDT) +Received: from smtp.gmail.com (p70-80.acedsl.com. [66.114.70.80]) + by mx.google.com with ESMTPS id g5sm2304858vez.6.2012.10.17.17.00.04 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 17 Oct 2012 17:00:05 -0700 (PDT) +From: Ethan Glasser-Camp +To: notmuch@notmuchmail.org +Subject: [PATCH 1/3] test: emacs: toggle eliding of non-matching messages in + `notmuch-show' +Date: Wed, 17 Oct 2012 19:59:59 -0400 +Message-Id: <1350518399-31087-1-git-send-email-ethan@betacantrips.com> +X-Mailer: git-send-email 1.7.9.5 +In-Reply-To: <1329684990-12504-2-git-send-email-pieter@praet.org> +References: <1329684990-12504-2-git-send-email-pieter@praet.org> +Cc: Ethan Glasser-Camp , + Pieter Praet +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: Thu, 18 Oct 2012 00:00:09 -0000 + +From: Pieter Praet + +See commits 44a544ed, 866ce8b1, 668b66ec. + +Signed-off-by: Ethan Glasser-Camp +--- +I am embarrassed to admit I didn't try to apply these patches before I +removed the needs-review tag. This one didn't apply. Here's the +trivial fix. The tests are still placed at the bottom of test/emacs +and not in test/emacs-show. The other two patches should apply without +change. + + test/emacs | 20 ++++++++++++ + .../notmuch-show-process-crypto-mime-parts-off | 31 +++++++++++++++++++ + .../notmuch-show-process-crypto-mime-parts-on | 32 ++++++++++++++++++++ + 3 files changed, 83 insertions(+) + 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 1f84b91..58ea59a 100755 +--- a/test/emacs ++++ b/test/emacs +@@ -783,4 +783,24 @@ EOF + test_expect_equal_file OUTPUT EXPECTED + + ++test_begin_subtest "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 "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 "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.9.5 +