1 Return-Path: <ethan.glasser.camp@gmail.com>
\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 2D02C431FBD
\r
6 for <notmuch@notmuchmail.org>; Wed, 17 Oct 2012 17:00:09 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id zF2lVM3AvoDV for <notmuch@notmuchmail.org>;
\r
17 Wed, 17 Oct 2012 17:00:07 -0700 (PDT)
\r
18 Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com
\r
19 [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 883DE431FB6
\r
22 for <notmuch@notmuchmail.org>; Wed, 17 Oct 2012 17:00:07 -0700 (PDT)
\r
23 Received: by mail-vb0-f53.google.com with SMTP id fc21so8260469vbb.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 17 Oct 2012 17:00:06 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=xHPdGmbv7aYobqU3eS5w6omBRfW1dBzWWBDTR/0WHYg=;
\r
28 b=ayJ09XNdUV3nZX5u0y86chfLTntOCYM/KW/P6or0FVdzz1if6Uc/cBgYP6v5zz9Srh
\r
29 lEcbRE937uJLb3nIfsDZ84kYIGMxo9pkZqqtUESzVwR+gpsLtu4XN66fJghzWHt6I8dJ
\r
30 eVxjrGq0biO76fUFXduDa5ovUh5ANyP1jM2GEJv3JFMulKZ/szus56MES1gme5yNg4ua
\r
31 gJul3avkxQj10qpO2pob0MFaavIDLl9pU9ECNb1MgPdWY1zKmPxHk/1Oj14u5RzH+7LV
\r
32 akg8L4pDygL6fwJJNOMyjuuN7oqaKZKxb8P28kok7OvNhnefsL8dleVG1xnMFl8FPVJk
\r
34 Received: by 10.220.240.135 with SMTP id la7mr2513881vcb.44.1350518406497;
\r
35 Wed, 17 Oct 2012 17:00:06 -0700 (PDT)
\r
36 Received: from smtp.gmail.com (p70-80.acedsl.com. [66.114.70.80])
\r
37 by mx.google.com with ESMTPS id g5sm2304858vez.6.2012.10.17.17.00.04
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Wed, 17 Oct 2012 17:00:05 -0700 (PDT)
\r
40 From: Ethan Glasser-Camp <ethan.glasser.camp@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 1/3] test: emacs: toggle eliding of non-matching messages in
\r
44 Date: Wed, 17 Oct 2012 19:59:59 -0400
\r
45 Message-Id: <1350518399-31087-1-git-send-email-ethan@betacantrips.com>
\r
46 X-Mailer: git-send-email 1.7.9.5
\r
47 In-Reply-To: <1329684990-12504-2-git-send-email-pieter@praet.org>
\r
48 References: <1329684990-12504-2-git-send-email-pieter@praet.org>
\r
49 Cc: Ethan Glasser-Camp <ethan@betacantrips.com>,
\r
50 Pieter Praet <pieter@praet.org>
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Thu, 18 Oct 2012 00:00:09 -0000
\r
65 From: Pieter Praet <pieter@praet.org>
\r
67 See commits 44a544ed, 866ce8b1, 668b66ec.
\r
69 Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
\r
71 I am embarrassed to admit I didn't try to apply these patches before I
\r
72 removed the needs-review tag. This one didn't apply. Here's the
\r
73 trivial fix. The tests are still placed at the bottom of test/emacs
\r
74 and not in test/emacs-show. The other two patches should apply without
\r
77 test/emacs | 20 ++++++++++++
\r
78 .../notmuch-show-process-crypto-mime-parts-off | 31 +++++++++++++++++++
\r
79 .../notmuch-show-process-crypto-mime-parts-on | 32 ++++++++++++++++++++
\r
80 3 files changed, 83 insertions(+)
\r
81 create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off
\r
82 create mode 100644 test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on
\r
84 diff --git a/test/emacs b/test/emacs
\r
85 index 1f84b91..58ea59a 100755
\r
88 @@ -783,4 +783,24 @@ EOF
\r
89 test_expect_equal_file OUTPUT EXPECTED
\r
92 +test_begin_subtest "don't process cryptographic MIME parts"
\r
93 +test_emacs '(let ((notmuch-crypto-process-mime nil))
\r
94 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
95 + (test-visible-output))'
\r
96 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-off
\r
98 +test_begin_subtest "process cryptographic MIME parts"
\r
99 +test_emacs '(let ((notmuch-crypto-process-mime t))
\r
100 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
101 + (test-visible-output))'
\r
102 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on
\r
104 +test_begin_subtest "process cryptographic MIME parts (w/ notmuch-show-toggle-process-crypto)"
\r
105 +test_emacs '(let ((notmuch-crypto-process-mime nil))
\r
106 + (notmuch-show "id:20091117203301.GV3165@dottiness.seas.harvard.edu")
\r
107 + (notmuch-show-toggle-process-crypto)
\r
108 + (test-visible-output))'
\r
109 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on
\r
113 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
114 new file mode 100644
\r
115 index 0000000..076083a
\r
117 +++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-off
\r
119 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
120 +Subject: [notmuch] Working with Maildir storage?
\r
121 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
122 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
123 + Subject: Re: [notmuch] Working with Maildir storage?
\r
124 + To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
125 + Cc: notmuch@notmuchmail.org
\r
126 + Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
128 + [ multipart/mixed ]
\r
129 + [ multipart/signed ]
\r
131 + > See the patch just posted here.
\r
133 + Is the list archived anywhere? The obvious archives
\r
134 + (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
135 + think I subscribed too late to get the patch (I only just saw the
\r
136 + discussion about it).
\r
138 + It doesn't look like the patch is in git yet.
\r
142 + [ 4-line signature. Click/Enter to show. ]
\r
143 + [ application/pgp-signature ]
\r
145 + [ 4-line signature. Click/Enter to show. ]
\r
146 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
147 + Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
148 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
149 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
150 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
151 new file mode 100644
\r
152 index 0000000..588f38f
\r
154 +++ b/test/emacs.expected-output/notmuch-show-process-crypto-mime-parts-on
\r
156 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
157 +Subject: [notmuch] Working with Maildir storage?
\r
158 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
159 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
160 + Subject: Re: [notmuch] Working with Maildir storage?
\r
161 + To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
162 + Cc: notmuch@notmuchmail.org
\r
163 + Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
165 + [ multipart/mixed ]
\r
166 + [ multipart/signed ]
\r
167 + [ Unknown key ID 0xD74695063141ACD8 or unsupported algorithm ]
\r
169 + > See the patch just posted here.
\r
171 + Is the list archived anywhere? The obvious archives
\r
172 + (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
173 + think I subscribed too late to get the patch (I only just saw the
\r
174 + discussion about it).
\r
176 + It doesn't look like the patch is in git yet.
\r
180 + [ 4-line signature. Click/Enter to show. ]
\r
181 + [ application/pgp-signature ]
\r
183 + [ 4-line signature. Click/Enter to show. ]
\r
184 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
185 + Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
186 + Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
187 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r