[PATCH 3/4] emacs: test: notmuch show without indentation
[notmuch-archives.git] / 88 / fe29c3514d80f10deae43fa8a721e767f0bef7
1 Return-Path: <error4me@gmx.de>\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 E9BAE431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:30 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
12         tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\r
13         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 LLfX1yAxN18m for <notmuch@notmuchmail.org>;\r
17         Thu, 24 Nov 2011 14:05:29 -0800 (PST)\r
18 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
19         by olra.theworths.org (Postfix) with SMTP id 61B2B431FD0\r
20         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:28 -0800 (PST)\r
21 Received: (qmail invoked by alias); 24 Nov 2011 22:05:27 -0000\r
22 Received: from p54BE4A18.dip.t-dialin.net (EHLO shi.workgroup) [84.190.74.24]\r
23         by mail.gmx.net (mp010) with SMTP; 24 Nov 2011 23:05:27 +0100\r
24 X-Authenticated: #19296480\r
25 X-Provags-ID: V01U2FsdGVkX197hG5p8kx7SOGXjXlIx1hvuBi+/HYpKT6QwPVXUW\r
26         CNLwJ8kHjMQgW1\r
27 Received: from grfz by shi.workgroup with local (Exim 4.77)\r
28         (envelope-from <error4me@gmx.de>)\r
29         id 1RThOw-0001w5-U8; Thu, 24 Nov 2011 23:04:14 +0100\r
30 From: Gregor Zattler <telegraph@gmx.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH 3/4] emacs: test: notmuch show without indentation\r
33 Date: Thu, 24 Nov 2011 23:03:23 +0100\r
34 Message-Id: <1322172204-6677-4-git-send-email-telegraph@gmx.net>\r
35 X-Mailer: git-send-email 1.7.7.3\r
36 In-Reply-To: <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
37 References: <87d3ch8xz1.fsf@zancas.localnet>\r
38         <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
39 X-Y-GMX-Trusted: 0\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 24 Nov 2011 22:05:31 -0000\r
53 \r
54 Previous behaviour was to indent messages in a thread according\r
55 to depth by one space per level.  In\r
56 id:1311028119-50637-1-git-send-email-fgeller@gmail.com Felix\r
57 Geller proposed a patch in order to turn indentation off.  This\r
58 commit tests if instead setting notmuch-indent-messages-width to\r
59 `0' does turn off indentation.\r
60 ---\r
61  test/emacs                                         |    7 +\r
62  ...show-thread-maildir-storage-without-indentation |  215 ++++++++++++++++++++\r
63  2 files changed, 222 insertions(+), 0 deletions(-)\r
64  create mode 100644 test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
65 \r
66 diff --git a/test/emacs b/test/emacs\r
67 index 20d52d8..da6d22b 100755\r
68 --- a/test/emacs\r
69 +++ b/test/emacs\r
70 @@ -57,6 +57,13 @@ test_emacs "(let ((notmuch-indent-messages-width 1))\r
71               (test-output))"\r
72  test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage\r
73  \r
74 +test_begin_subtest "Basic notmuch-show view in emacs without indentation"\r
75 +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
76 +test_emacs "(let ((notmuch-indent-messages-width 0))\r
77 +             (notmuch-show \"$maildir_storage_thread\")\r
78 +             (test-output))"\r
79 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation\r
80 +\r
81  test_begin_subtest "notmuch-show for message with invalid From"\r
82  add_message "[subject]=\"message-with-invalid-from\"" \\r
83             "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""\r
84 diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation b/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
85 new file mode 100644\r
86 index 0000000..fa2108e\r
87 --- /dev/null\r
88 +++ b/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation\r
89 @@ -0,0 +1,215 @@\r
90 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
91 +Subject: [notmuch] Working with Maildir storage?\r
92 +To: notmuch@notmuchmail.org\r
93 +Date: Tue, 17 Nov 2009 14:00:54 -0500\r
94 +\r
95 +[ multipart/mixed ]\r
96 +[ multipart/signed ]\r
97 +[ text/plain ]\r
98 +I saw the LWN article and decided to take a look at notmuch.  I'm\r
99 +currently using mutt and mairix to index and read a collection of\r
100 +Maildir mail folders (around 40,000 messages total).\r
101 +\r
102 +notmuch indexed the messages without complaint, but my attempt at\r
103 +searching bombed out. Running, for example:\r
104 +\r
105 +  notmuch search storage\r
106 +\r
107 +Resulted in 4604 lines of errors along the lines of:\r
108 +\r
109 +  Error opening\r
110 +  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
111 +  Too many open files\r
112 +\r
113 +I'm curious if this is expected behavior (i.e., notmuch does not work\r
114 +with Maildir) or if something else is going on.\r
115 +\r
116 +Cheers,\r
117 +\r
118 +[ 5-line signature. Click/Enter to show. ]\r
119 +-- \r
120 +Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
121 +Senior Technologist, Computing and Information Technology\r
122 +Harvard University School of Engineering and Applied Sciences\r
123 +\r
124 +[ application/pgp-signature ]\r
125 +[ text/plain ]\r
126 +[ 4-line signature. Click/Enter to show. ]\r
127 +_______________________________________________\r
128 +notmuch mailing list\r
129 +notmuch@notmuchmail.org\r
130 +http://notmuchmail.org/mailman/listinfo/notmuch\r
131 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
132 +Subject: Re: [notmuch] Working with Maildir storage?\r
133 +To: notmuch@notmuchmail.org\r
134 +Date: Wed, 18 Nov 2009 01:02:38 +0600\r
135 +\r
136 +[ multipart/mixed ]\r
137 +[ multipart/signed ]\r
138 +[ text/plain ]\r
139 +\r
140 +Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:\r
141 +\r
142 + LK> Resulted in 4604 lines of errors along the lines of:\r
143 +\r
144 + LK>   Error opening\r
145 + LK>   /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
146 + LK>   Too many open files\r
147 +\r
148 +See the patch just posted here.\r
149 +\r
150 +[ 2-line signature. Click/Enter to show. ]\r
151 +-- \r
152 +http://fossarchy.blogspot.com/\r
153 +[ application/pgp-signature ]\r
154 +[ text/plain ]\r
155 +[ 4-line signature. Click/Enter to show. ]\r
156 +_______________________________________________\r
157 +notmuch mailing list\r
158 +notmuch@notmuchmail.org\r
159 +http://notmuchmail.org/mailman/listinfo/notmuch\r
160 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)\r
161 +Subject: Re: [notmuch] Working with Maildir storage?\r
162 +To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
163 +Cc: notmuch@notmuchmail.org\r
164 +Date: Tue, 17 Nov 2009 15:33:01 -0500\r
165 +\r
166 +[ multipart/mixed ]\r
167 +[ multipart/signed ]\r
168 +[ text/plain ]\r
169 +> See the patch just posted here.\r
170 +\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
175 +\r
176 +It doesn't look like the patch is in git yet.\r
177 +\r
178 +-- Lars\r
179 +\r
180 +[ 5-line signature. Click/Enter to show. ]\r
181 +-- \r
182 +Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
183 +Senior Technologist, Computing and Information Technology\r
184 +Harvard University School of Engineering and Applied Sciences\r
185 +\r
186 +[ application/pgp-signature ]\r
187 +[ text/plain ]\r
188 +[ 4-line signature. Click/Enter to show. ]\r
189 +_______________________________________________\r
190 +notmuch mailing list\r
191 +notmuch@notmuchmail.org\r
192 +http://notmuchmail.org/mailman/listinfo/notmuch\r
193 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
194 +Subject: [notmuch] Working with Maildir storage?\r
195 +To: notmuch@notmuchmail.org\r
196 +Date: Wed, 18 Nov 2009 02:50:48 +0600\r
197 +\r
198 +\r
199 +Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars at seas.harvard.edu did gyre and gimble:\r
200 +\r
201 + LK> Is the list archived anywhere?  The obvious archives\r
202 + LK> (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
203 + LK> think I subscribed too late to get the patch (I only just saw the\r
204 + LK> discussion about it).\r
205 +\r
206 + LK> It doesn't look like the patch is in git yet.\r
207 +\r
208 +Just has been pushed\r
209 +\r
210 +[ 10-line signature. Click/Enter to show. ]\r
211 +-- \r
212 +http://fossarchy.blogspot.com/\r
213 +-------------- next part --------------\r
214 +A non-text attachment was scrubbed...\r
215 +Name: not available\r
216 +Type: application/pgp-signature\r
217 +Size: 834 bytes\r
218 +Desc: not available\r
219 +URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>\r
220 +\r
221 +Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)\r
222 +Subject: [notmuch] Working with Maildir storage?\r
223 +To: notmuch@notmuchmail.org\r
224 +Date: Tue, 17 Nov 2009 13:24:13 -0800\r
225 +\r
226 +On Tue, 17 Nov 2009 15:33:01 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:\r
227 +> > See the patch just posted here.\r
228 +\r
229 +I've also pushed a slightly more complicated (and complete) fix to my\r
230 +private notmuch repository\r
231 +\r
232 +git://keithp.com/git/notmuch\r
233 +\r
234 +> Is the list archived anywhere?\r
235 +\r
236 +Oops. Looks like Carl's mail server is broken. He's traveling to\r
237 +Barcelona today and so it won't get fixed for a while.\r
238 +\r
239 +Thanks to everyone for trying out notmuch!\r
240 +\r
241 +-keith\r
242 +\r
243 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
244 +Subject: Re: [notmuch] Working with Maildir storage?\r
245 +To: Keith Packard <keithp@keithp.com>\r
246 +Cc: notmuch@notmuchmail.org\r
247 +Date: Tue, 17 Nov 2009 19:50:40 -0500\r
248 +\r
249 +[ multipart/mixed ]\r
250 +[ multipart/signed ]\r
251 +[ text/plain ]\r
252 +> I've also pushed a slightly more complicated (and complete) fix to my\r
253 +> private notmuch repository\r
254 +\r
255 +The version of lib/messages.cc in your repo doesn't build because it's\r
256 +missing "#include <stdint.h>" (for the uint32_t on line 466).\r
257 +\r
258 +[ 5-line signature. Click/Enter to show. ]\r
259 +-- \r
260 +Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
261 +Senior Technologist, Computing and Information Technology\r
262 +Harvard University School of Engineering and Applied Sciences\r
263 +\r
264 +[ application/pgp-signature ]\r
265 +[ text/plain ]\r
266 +[ 4-line signature. Click/Enter to show. ]\r
267 +_______________________________________________\r
268 +notmuch mailing list\r
269 +notmuch@notmuchmail.org\r
270 +http://notmuchmail.org/mailman/listinfo/notmuch\r
271 +Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
272 +Subject: [notmuch] Working with Maildir storage?\r
273 +To: notmuch@notmuchmail.org\r
274 +Date: Wed, 18 Nov 2009 02:08:10 -0800\r
275 +\r
276 +On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:\r
277 +> I saw the LWN article and decided to take a look at notmuch.  I'm\r
278 +> currently using mutt and mairix to index and read a collection of\r
279 +> Maildir mail folders (around 40,000 messages total).\r
280 +\r
281 +Welcome, Lars!\r
282 +\r
283 +I hadn't even seen that Keith's blog post had been picked up by lwn.net.\r
284 +That's very interesting. So, thanks for coming and trying out notmuch.\r
285 +\r
286 +>   Error opening\r
287 +>   /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
288 +>   Too many open files\r
289 +\r
290 +Sadly, the lwn article coincided with me having just introduced this\r
291 +bug, and then getting on a Trans-Atlantic flight. So I fixed the bug\r
292 +fairly quickly, but there was quite a bit of latency before I could push\r
293 +the fix out. It should be fixed now.\r
294 +\r
295 +> I'm curious if this is expected behavior (i.e., notmuch does not work\r
296 +> with Maildir) or if something else is going on.\r
297 +\r
298 +Notmuch works just fine with maildir---it's one of the things that it\r
299 +likes the best.\r
300 +\r
301 +Happy hacking,\r
302 +\r
303 +-Carl\r
304 +\r
305 -- \r
306 1.7.7.3\r
307 \r