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 DADEA429E21
\r
6 for <notmuch@notmuchmail.org>; Sun, 23 Oct 2011 10:01:15 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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
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 vHM0Xb19nzX2 for <notmuch@notmuchmail.org>;
\r
17 Sun, 23 Oct 2011 10:01:14 -0700 (PDT)
\r
18 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23])
\r
19 by olra.theworths.org (Postfix) with SMTP id 47D8B431FB6
\r
20 for <notmuch@notmuchmail.org>; Sun, 23 Oct 2011 10:01:14 -0700 (PDT)
\r
21 Received: (qmail invoked by alias); 23 Oct 2011 17:01:12 -0000
\r
22 Received: from p54BE2C59.dip.t-dialin.net (EHLO shi.workgroup) [84.190.44.89]
\r
23 by mail.gmx.net (mp039) with SMTP; 23 Oct 2011 19:01:12 +0200
\r
24 X-Authenticated: #19296480
\r
25 X-Provags-ID: V01U2FsdGVkX19DydFgF+5DOceupNLXkQr7j6CYDFL2uf6hThC57g
\r
27 Received: from grfz by shi.workgroup with local (Exim 4.77)
\r
28 (envelope-from <error4me@gmx.de>)
\r
29 id 1RI1Pw-0000Pr-OJ; Sun, 23 Oct 2011 19:01:00 +0200
\r
30 Date: Sun, 23 Oct 2011 19:00:40 +0200
\r
31 From: Gregor Zattler <telegraph@gmx.net>
\r
32 To: notmuch <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH 2/2] Emacs: test: notmuch-show for a message thread without
\r
35 Message-ID: <20111023170040.GE21842@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
44 Content-Type: text/plain; charset=us-ascii
\r
45 Content-Disposition: inline
\r
46 In-Reply-To: <20111023164324.GC21842@shi.workgroup>
\r
47 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sun, 23 Oct 2011 17:01:16 -0000
\r
63 In Emacs, notmuch indents messages according to their thread
\r
64 depth. This leads to unused space and sometimes strange
\r
65 formatting of paragraphs with long lines. Therefore I would like
\r
66 to turn it off and have the message thread look more like a
\r
67 conversation, as on GMail for example.
\r
69 This commit contains a test for such functionality. It tests
\r
70 notmuch-show for a message thread without the indentation to
\r
71 indicate thread depth of messages by setting
\r
72 notmuch-indent-messages-width to `0'.
\r
74 I send this test as second patch since it depends on the
\r
75 notmuch-indent-messages-width variable introduced by the first
\r
79 ...show-thread-maildir-storage-without-indentation | 215 ++++++++++++++++++++
\r
80 2 files changed, 222 insertions(+), 0 deletions(-)
\r
81 create mode 100644 test/notmuch-show-thread-maildir-storage-without-indentation
\r
83 diff --git a/test/emacs b/test/emacs
\r
84 index 0303d7d..6e201ba 100755
\r
87 @@ -50,6 +50,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")
\r
89 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
\r
91 +test_begin_subtest "Basic notmuch-show view in emacs without indentation"
\r
92 +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
\r
93 +test_emacs "(let ((notmuch-indent-messages-width 0))
\r
94 + (notmuch-show \"$maildir_storage_thread\")
\r
96 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation
\r
98 test_begin_subtest "notmuch-show for message with invalid From"
\r
99 add_message "[subject]=\"message-with-invalid-from\"" \
\r
100 "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""
\r
101 diff --git a/test/notmuch-show-thread-maildir-storage-without-indentation b/test/notmuch-show-thread-maildir-storage-without-indentation
\r
102 new file mode 100644
\r
103 index 0000000..00bd006
\r
105 +++ b/test/notmuch-show-thread-maildir-storage-without-indentation
\r
107 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
108 +Subject: [notmuch] Working with Maildir storage?
\r
109 +To: notmuch@notmuchmail.org
\r
110 +Date: Tue, 17 Nov 2009 14:00:54 -0500
\r
112 +[ multipart/mixed ]
\r
113 +[ multipart/signed ]
\r
115 +I saw the LWN article and decided to take a look at notmuch. I'm
\r
116 +currently using mutt and mairix to index and read a collection of
\r
117 +Maildir mail folders (around 40,000 messages total).
\r
119 +notmuch indexed the messages without complaint, but my attempt at
\r
120 +searching bombed out. Running, for example:
\r
122 + notmuch search storage
\r
124 +Resulted in 4604 lines of errors along the lines of:
\r
127 + /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
128 + Too many open files
\r
130 +I'm curious if this is expected behavior (i.e., notmuch does not work
\r
131 +with Maildir) or if something else is going on.
\r
135 +[ 5-line signature. Click/Enter to show. ]
\r
137 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
138 +Senior Technologist, Computing and Information Technology
\r
139 +Harvard University School of Engineering and Applied Sciences
\r
141 +[ application/pgp-signature ]
\r
143 +[ 4-line signature. Click/Enter to show. ]
\r
144 +_______________________________________________
\r
145 +notmuch mailing list
\r
146 +notmuch@notmuchmail.org
\r
147 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
148 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
149 +Subject: Re: [notmuch] Working with Maildir storage?
\r
150 +To: notmuch@notmuchmail.org
\r
151 +Date: Wed, 18 Nov 2009 01:02:38 +0600
\r
153 +[ multipart/mixed ]
\r
154 +[ multipart/signed ]
\r
157 +Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:
\r
159 + LK> Resulted in 4604 lines of errors along the lines of:
\r
161 + LK> Error opening
\r
162 + LK> /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
163 + LK> Too many open files
\r
165 +See the patch just posted here.
\r
167 +[ 2-line signature. Click/Enter to show. ]
\r
169 + http://fossarchy.blogspot.com/
\r
170 +[ application/pgp-signature ]
\r
172 +[ 4-line signature. Click/Enter to show. ]
\r
173 +_______________________________________________
\r
174 +notmuch mailing list
\r
175 +notmuch@notmuchmail.org
\r
176 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
177 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)
\r
178 +Subject: Re: [notmuch] Working with Maildir storage?
\r
179 +To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
180 +Cc: notmuch@notmuchmail.org
\r
181 +Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
183 +[ multipart/mixed ]
\r
184 +[ multipart/signed ]
\r
186 +> See the patch just posted here.
\r
188 +Is the list archived anywhere? The obvious archives
\r
189 +(http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
190 +think I subscribed too late to get the patch (I only just saw the
\r
191 +discussion about it).
\r
193 +It doesn't look like the patch is in git yet.
\r
197 +[ 5-line signature. Click/Enter to show. ]
\r
199 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
200 +Senior Technologist, Computing and Information Technology
\r
201 +Harvard University School of Engineering and Applied Sciences
\r
203 +[ application/pgp-signature ]
\r
205 +[ 4-line signature. Click/Enter to show. ]
\r
206 +_______________________________________________
\r
207 +notmuch mailing list
\r
208 +notmuch@notmuchmail.org
\r
209 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
210 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
211 +Subject: [notmuch] Working with Maildir storage?
\r
212 +To: notmuch@notmuchmail.org
\r
213 +Date: Wed, 18 Nov 2009 02:50:48 +0600
\r
216 +Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars at seas.harvard.edu did gyre and gimble:
\r
218 + LK> Is the list archived anywhere? The obvious archives
\r
219 + LK> (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
220 + LK> think I subscribed too late to get the patch (I only just saw the
\r
221 + LK> discussion about it).
\r
223 + LK> It doesn't look like the patch is in git yet.
\r
225 +Just has been pushed
\r
227 +[ 10-line signature. Click/Enter to show. ]
\r
229 + http://fossarchy.blogspot.com/
\r
230 +-------------- next part --------------
\r
231 +A non-text attachment was scrubbed...
\r
232 +Name: not available
\r
233 +Type: application/pgp-signature
\r
235 +Desc: not available
\r
236 +URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>
\r
238 +Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
239 +Subject: [notmuch] Working with Maildir storage?
\r
240 +To: notmuch@notmuchmail.org
\r
241 +Date: Tue, 17 Nov 2009 13:24:13 -0800
\r
243 +On Tue, 17 Nov 2009 15:33:01 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:
\r
244 +> > See the patch just posted here.
\r
246 +I've also pushed a slightly more complicated (and complete) fix to my
\r
247 +private notmuch repository
\r
249 +git://keithp.com/git/notmuch
\r
251 +> Is the list archived anywhere?
\r
253 +Oops. Looks like Carl's mail server is broken. He's traveling to
\r
254 +Barcelona today and so it won't get fixed for a while.
\r
256 +Thanks to everyone for trying out notmuch!
\r
260 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
261 +Subject: Re: [notmuch] Working with Maildir storage?
\r
262 +To: Keith Packard <keithp@keithp.com>
\r
263 +Cc: notmuch@notmuchmail.org
\r
264 +Date: Tue, 17 Nov 2009 19:50:40 -0500
\r
266 +[ multipart/mixed ]
\r
267 +[ multipart/signed ]
\r
269 +> I've also pushed a slightly more complicated (and complete) fix to my
\r
270 +> private notmuch repository
\r
272 +The version of lib/messages.cc in your repo doesn't build because it's
\r
273 +missing "#include <stdint.h>" (for the uint32_t on line 466).
\r
275 +[ 5-line signature. Click/Enter to show. ]
\r
277 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
278 +Senior Technologist, Computing and Information Technology
\r
279 +Harvard University School of Engineering and Applied Sciences
\r
281 +[ application/pgp-signature ]
\r
283 +[ 4-line signature. Click/Enter to show. ]
\r
284 +_______________________________________________
\r
285 +notmuch mailing list
\r
286 +notmuch@notmuchmail.org
\r
287 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
288 +Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
289 +Subject: [notmuch] Working with Maildir storage?
\r
290 +To: notmuch@notmuchmail.org
\r
291 +Date: Wed, 18 Nov 2009 02:08:10 -0800
\r
293 +On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:
\r
294 +> I saw the LWN article and decided to take a look at notmuch. I'm
\r
295 +> currently using mutt and mairix to index and read a collection of
\r
296 +> Maildir mail folders (around 40,000 messages total).
\r
300 +I hadn't even seen that Keith's blog post had been picked up by lwn.net.
\r
301 +That's very interesting. So, thanks for coming and trying out notmuch.
\r
304 +> /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
305 +> Too many open files
\r
307 +Sadly, the lwn article coincided with me having just introduced this
\r
308 +bug, and then getting on a Trans-Atlantic flight. So I fixed the bug
\r
309 +fairly quickly, but there was quite a bit of latency before I could push
\r
310 +the fix out. It should be fixed now.
\r
312 +> I'm curious if this is expected behavior (i.e., notmuch does not work
\r
313 +> with Maildir) or if something else is going on.
\r
315 +Notmuch works just fine with maildir---it's one of the things that it
\r