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