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 3693D431FC3
\r
6 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:57 -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 OzqDHha6vWRo for <notmuch@notmuchmail.org>;
\r
16 Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 7757F431FB6 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:55 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so311625wgb.2
\r
23 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:52 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.180.92.73 as permitted sender) client-ip=10.180.92.73;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.180.92.73 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.180.92.73])
\r
31 by 10.180.92.73 with SMTP id ck9mr38246230wib.2.1329936352875 (num_hops
\r
32 = 1); Wed, 22 Feb 2012 10:45:52 -0800 (PST)
\r
34 Received: by 10.180.92.73 with SMTP id ck9mr31600121wib.2.1329936352742;
\r
35 Wed, 22 Feb 2012 10:45:52 -0800 (PST)
\r
36 Received: from localhost ([109.131.181.26])
\r
37 by mx.google.com with ESMTPS id ga1sm74840497wib.5.2012.02.22.10.45.52
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Wed, 22 Feb 2012 10:45:52 -0800 (PST)
\r
40 From: Pieter Praet <pieter@praet.org>
\r
41 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
42 Subject: [PATCH v2 1/7] test: emacs: new tests "notmuch-show: {show,
\r
43 hide} message headers"
\r
44 Date: Wed, 22 Feb 2012 19:43:28 +0100
\r
45 Message-Id: <1329936214-30959-1-git-send-email-pieter@praet.org>
\r
46 X-Mailer: git-send-email 1.7.8.1
\r
47 In-Reply-To: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
48 References: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
50 ALoCoQmkzLCvLiLNWey9Nb/a9s+Oa9bVzHzYzG6L+jRvJKJhL8N27n0t0K8VzLgb5r4zaZsCJC7y
\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: Wed, 22 Feb 2012 18:45:57 -0000
\r
67 - New subtest "notmuch-show: show message headers":
\r
68 Setting `notmuch-message-headers-visible' to t causes all headers
\r
69 defined in `notmuch-message-headers' to be shown.
\r
71 - New subtest "notmuch-show: hide message headers":
\r
72 Setting `notmuch-message-headers-visible' to nil causes all headers
\r
73 defined in `notmuch-message-headers' to be hidden.
\r
74 ("Subject:" may be an exception; See the use of `headers-start' in
\r
75 `notmuch-show-insert-msg')
\r
77 - New subtest "notmuch-show: hide message headers (w/ notmuch-show-toggle-headers)":
\r
78 Setting `notmuch-message-headers-visible' to t causes all headers
\r
79 defined in `notmuch-message-headers' to be shown, but they can be
\r
80 hidden for the current message by running `notmuch-show-toggle-headers'.
\r
82 test/emacs | 25 ++++++++++++++++++++
\r
83 .../notmuch-show-message-with-headers-hidden | 22 +++++++++++++++++
\r
84 .../notmuch-show-message-with-headers-visible | 25 ++++++++++++++++++++
\r
85 3 files changed, 72 insertions(+), 0 deletions(-)
\r
86 create mode 100644 test/emacs.expected-output/notmuch-show-message-with-headers-hidden
\r
87 create mode 100644 test/emacs.expected-output/notmuch-show-message-with-headers-visible
\r
89 diff --git a/test/emacs b/test/emacs
\r
90 index b74cfa9..f9ea1c3 100755
\r
93 @@ -383,6 +383,31 @@ test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.
\r
94 (test-visible-output)'
\r
95 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-hidden-messages
\r
97 +test_begin_subtest "notmuch-show: show message headers"
\r
99 + '(let ((notmuch-message-headers '\''("Subject" "To" "Cc" "Date"))
\r
100 + (notmuch-message-headers-visible t))
\r
101 + (notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
\r
102 + (test-visible-output))'
\r
103 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-visible
\r
105 +test_begin_subtest "notmuch-show: hide message headers"
\r
107 + '(let ((notmuch-message-headers '\''("Subject" "To" "Cc" "Date"))
\r
108 + (notmuch-message-headers-visible nil))
\r
109 + (notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
\r
110 + (test-visible-output))'
\r
111 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-hidden
\r
113 +test_begin_subtest "notmuch-show: hide message headers (w/ notmuch-show-toggle-headers)"
\r
115 + '(let ((notmuch-message-headers '\''("Subject" "To" "Cc" "Date"))
\r
116 + (notmuch-message-headers-visible t))
\r
117 + (notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
\r
118 + (notmuch-show-toggle-headers)
\r
119 + (test-visible-output))'
\r
120 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-hidden
\r
122 test_begin_subtest "Stashing in notmuch-show"
\r
123 add_message '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' \
\r
124 '[from]="Some One <someone@somewhere.org>"' \
\r
125 diff --git a/test/emacs.expected-output/notmuch-show-message-with-headers-hidden b/test/emacs.expected-output/notmuch-show-message-with-headers-hidden
\r
126 new file mode 100644
\r
127 index 0000000..9d7f91b
\r
129 +++ b/test/emacs.expected-output/notmuch-show-message-with-headers-hidden
\r
131 +Jan Janak <jan@ryngle.com> (2009-11-17) (inbox unread)
\r
132 +Subject: [notmuch] What a great idea!
\r
133 + Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
135 + On Tue, Nov 17, 2009 at 11:35 PM, Jan Janak <jan at ryngle.com> wrote:
\r
138 + > First of all, notmuch is a wonderful idea, both the cmdline tool and
\r
139 + [ 2 more citation lines. Click/Enter to show. ]
\r
141 + > Have you considered sending an announcement to the org-mode mailing list?
\r
142 + > http://org-mode.org
\r
144 + Sorry, wrong URL, the correct one is: http://orgmode.org
\r
146 + > Various ways of searching/referencing emails from emacs were discussed
\r
147 + > there several times and none of them were as elegant as notmuch (not
\r
148 + > even close). Maybe notmuch would attract some of the developers
\r
152 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
153 diff --git a/test/emacs.expected-output/notmuch-show-message-with-headers-visible b/test/emacs.expected-output/notmuch-show-message-with-headers-visible
\r
154 new file mode 100644
\r
155 index 0000000..8efbd60
\r
157 +++ b/test/emacs.expected-output/notmuch-show-message-with-headers-visible
\r
159 +Jan Janak <jan@ryngle.com> (2009-11-17) (inbox unread)
\r
160 +Subject: [notmuch] What a great idea!
\r
161 + Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
162 + Subject: [notmuch] What a great idea!
\r
163 + To: notmuch@notmuchmail.org
\r
164 + Date: Tue, 17 Nov 2009 23:38:47 +0100
\r
166 + On Tue, Nov 17, 2009 at 11:35 PM, Jan Janak <jan at ryngle.com> wrote:
\r
169 + > First of all, notmuch is a wonderful idea, both the cmdline tool and
\r
170 + [ 2 more citation lines. Click/Enter to show. ]
\r
172 + > Have you considered sending an announcement to the org-mode mailing list?
\r
173 + > http://org-mode.org
\r
175 + Sorry, wrong URL, the correct one is: http://orgmode.org
\r
177 + > Various ways of searching/referencing emails from emacs were discussed
\r
178 + > there several times and none of them were as elegant as notmuch (not
\r
179 + > even close). Maybe notmuch would attract some of the developers
\r
183 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r