1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 698F4431FCB
\r
6 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:52 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id VxcLOroVrelk for <notmuch@notmuchmail.org>;
\r
16 Sun, 19 Feb 2012 12:58:50 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 33C78431FAF
\r
21 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:50 -0800 (PST)
\r
22 Received: by wibhi8 with SMTP id hi8so3113628wib.26
\r
23 for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:49 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.180.80.8 as permitted sender) client-ip=10.180.80.8;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.180.80.8 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.180.80.8])
\r
31 by 10.180.80.8 with SMTP id n8mr11956072wix.14.1329685129072 (num_hops
\r
32 = 1); Sun, 19 Feb 2012 12:58:49 -0800 (PST)
\r
34 Received: by 10.180.80.8 with SMTP id n8mr10018589wix.14.1329685129012;
\r
35 Sun, 19 Feb 2012 12:58:49 -0800 (PST)
\r
36 Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be.
\r
38 by mx.google.com with ESMTPS id dr5sm29453491wib.0.2012.02.19.12.58.48
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Sun, 19 Feb 2012 12:58:48 -0800 (PST)
\r
41 From: Pieter Praet <pieter@praet.org>
\r
42 To: David Edmondson <dme@dme.org>
\r
43 Subject: [PATCH 1/3] test: emacs: toggle processing of cryptographic MIME
\r
44 parts in `notmuch-show'
\r
45 Date: Sun, 19 Feb 2012 21:56:28 +0100
\r
46 Message-Id: <1329684990-12504-2-git-send-email-pieter@praet.org>
\r
47 X-Mailer: git-send-email 1.7.8.1
\r
48 In-Reply-To: <1329684990-12504-1-git-send-email-pieter@praet.org>
\r
49 References: <1328688139-3865-1-git-send-email-dme@dme.org>
\r
50 <1329684990-12504-1-git-send-email-pieter@praet.org>
\r
52 ALoCoQnoYsM1JOjjF6dTMU9nOc85AthTrlqJgSwyvpuXPttUKwQzcWuyeSEp2F/egKVYeFr/8vZ8
\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Sun, 19 Feb 2012 20:58:53 -0000
\r
68 See commit 19ec74c5.
\r
70 test/emacs | 20 ++++++++++++
\r
71 .../notmuch-show-process-crypto-mime-parts-off | 31 +++++++++++++++++++
\r
72 .../notmuch-show-process-crypto-mime-parts-on | 32 ++++++++++++++++++++
\r
73 3 files changed, 83 insertions(+), 0 deletions(-)
\r
74 create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off
\r
75 create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on
\r
77 diff --git a/test/emacs b/test/emacs
\r
78 index b74cfa9..b207d20 100755
\r
81 @@ -534,4 +534,24 @@ counter=$(test_emacs \
\r
83 test_expect_equal "$counter" 2
\r
85 +test_begin_subtest "notmuch-show: don't process cryptographic MIME parts"
\r
86 +test_emacs '(let ((notmuch-crypto-process-mime nil))
\r
87 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
88 + (test-visible-output))'
\r
89 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-off
\r
91 +test_begin_subtest "notmuch-show: process cryptographic MIME parts"
\r
92 +test_emacs '(let ((notmuch-crypto-process-mime t))
\r
93 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
94 + (test-visible-output))'
\r
95 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on
\r
97 +test_begin_subtest "notmuch-show: process cryptographic MIME parts (w/ notmuch-show-toggle-process-crypto)"
\r
98 +test_emacs '(let ((notmuch-crypto-process-mime nil))
\r
99 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
100 + (notmuch-show-toggle-process-crypto)
\r
101 + (test-visible-output))'
\r
102 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on
\r
106 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
107 new file mode 100644
\r
108 index 0000000..076083a
\r
110 +++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off
\r
112 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
113 +Subject: [notmuch] Working with Maildir storage?
\r
114 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
115 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
116 + Subject: Re: [notmuch] Working with Maildir storage?
\r
117 + To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
118 + Cc: notmuch@notmuchmail.org
\r
119 + Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
121 + [ multipart/mixed ]
\r
122 + [ multipart/signed ]
\r
124 + > See the patch just posted here.
\r
126 + Is the list archived anywhere? The obvious archives
\r
127 + (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
128 + think I subscribed too late to get the patch (I only just saw the
\r
129 + discussion about it).
\r
131 + It doesn't look like the patch is in git yet.
\r
135 + [ 4-line signature. Click/Enter to show. ]
\r
136 + [ application/pgp-signature ]
\r
138 + [ 4-line signature. Click/Enter to show. ]
\r
139 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
140 + Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
141 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
142 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
143 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
144 new file mode 100644
\r
145 index 0000000..588f38f
\r
147 +++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on
\r
149 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
150 +Subject: [notmuch] Working with Maildir storage?
\r
151 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
152 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
153 + Subject: Re: [notmuch] Working with Maildir storage?
\r
154 + To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
155 + Cc: notmuch@notmuchmail.org
\r
156 + Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
158 + [ multipart/mixed ]
\r
159 + [ multipart/signed ]
\r
160 + [ Unknown key ID 0xD74695063141ACD8 or unsupported algorithm ]
\r
162 + > See the patch just posted here.
\r
164 + Is the list archived anywhere? The obvious archives
\r
165 + (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
166 + think I subscribed too late to get the patch (I only just saw the
\r
167 + discussion about it).
\r
169 + It doesn't look like the patch is in git yet.
\r
173 + [ 4-line signature. Click/Enter to show. ]
\r
174 + [ application/pgp-signature ]
\r
176 + [ 4-line signature. Click/Enter to show. ]
\r
177 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
178 + Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
179 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
180 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r