1 Return-Path: <fgeller@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 85669431FD0
\r
6 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:16 -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 WglAhcENfP+5 for <notmuch@notmuchmail.org>;
\r
17 Mon, 18 Jul 2011 15:29:14 -0700 (PDT)
\r
18 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com
\r
19 [209.85.161.46]) (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 AE9B9429E2D
\r
22 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:13 -0700 (PDT)
\r
23 Received: by mail-fx0-f46.google.com with SMTP id 19so7015353fxh.19
\r
24 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:13 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=WTJITMEhQ9FeWHW3twuwGJBbDfzMsMlQncu6Y0VWY4k=;
\r
28 b=pv9lHuritnmH33tKBay5DyWJ4ojMV4ImmxN+4x/8FGMmGLQodiF1r6iLnv/XLYy4Xk
\r
29 UoBPCTWns2LmIeASCJZK1utVrfbe+fQCKjHxM6zEdu1EIYZYRhq3KB8slCg7ECe9CHmg
\r
30 Rt93gL/ITtYbcq4hr28Z9qgV6rIXIX9nOJeaA=
\r
31 Received: by 10.223.144.140 with SMTP id z12mr10884507fau.147.1311028153261;
\r
32 Mon, 18 Jul 2011 15:29:13 -0700 (PDT)
\r
33 Received: from localhorst.example.com (brln-4d0cb676.pool.mediaWays.net
\r
35 by mx.google.com with ESMTPS id 9sm3227919far.13.2011.07.18.15.29.12
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Mon, 18 Jul 2011 15:29:12 -0700 (PDT)
\r
38 Received: by localhorst.example.com (Postfix, from userid 501)
\r
39 id 58C534720602; Tue, 19 Jul 2011 00:29:11 +0200 (CEST)
\r
40 From: Felix Geller <fgeller@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 1/2] Emacs: Test for turning off indentation of messages in
\r
44 Date: Tue, 19 Jul 2011 00:28:38 +0200
\r
45 Message-Id: <1311028119-50637-2-git-send-email-fgeller@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.6
\r
47 In-Reply-To: <1311028119-50637-1-git-send-email-fgeller@gmail.com>
\r
48 References: <87vcuz2yga.fsf@servo.factory.finestructure.net>
\r
49 <1311028119-50637-1-git-send-email-fgeller@gmail.com>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Mon, 18 Jul 2011 22:29:16 -0000
\r
64 In Emacs, notmuch indents messages according to their thread
\r
65 depth. This leads to unused space and sometimes strange
\r
66 formatting of paragraphs with long lines. Therefore I would like
\r
67 to turn it off and have the message thread look more like a
\r
68 conversation, as on GMail for example.
\r
70 This commit contains a test for such functionality. It tests
\r
71 notmuch-show for a message thread without the indentation to
\r
72 indicate thread depth of messages.
\r
75 ...show-thread-maildir-storage-without-indentation | 215 ++++++++++++++++++++
\r
76 2 files changed, 222 insertions(+), 0 deletions(-)
\r
77 create mode 100644 test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation
\r
79 diff --git a/test/emacs b/test/emacs
\r
80 index 53f455a..c65d6d8 100755
\r
83 @@ -55,6 +55,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")
\r
85 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
\r
87 +test_begin_subtest "Basic notmuch-show view in emacs without indentation"
\r
88 +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
\r
89 +test_emacs "(let ((notmuch-show-indent-messages-in-thread nil))
\r
90 + (notmuch-show \"$maildir_storage_thread\")
\r
92 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation
\r
94 test_begin_subtest "notmuch-show for message with invalid From"
\r
95 add_message "[subject]=\"message-with-invalid-from\"" \
\r
96 "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""
\r
97 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
98 new file mode 100644
\r
99 index 0000000..00bd006
\r
101 +++ b/test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation
\r
103 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)
\r
104 +Subject: [notmuch] Working with Maildir storage?
\r
105 +To: notmuch@notmuchmail.org
\r
106 +Date: Tue, 17 Nov 2009 14:00:54 -0500
\r
108 +[ multipart/mixed ]
\r
109 +[ multipart/signed ]
\r
111 +I saw the LWN article and decided to take a look at notmuch. I'm
\r
112 +currently using mutt and mairix to index and read a collection of
\r
113 +Maildir mail folders (around 40,000 messages total).
\r
115 +notmuch indexed the messages without complaint, but my attempt at
\r
116 +searching bombed out. Running, for example:
\r
118 + notmuch search storage
\r
120 +Resulted in 4604 lines of errors along the lines of:
\r
123 + /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
124 + Too many open files
\r
126 +I'm curious if this is expected behavior (i.e., notmuch does not work
\r
127 +with Maildir) or if something else is going on.
\r
131 +[ 5-line signature. Click/Enter to show. ]
\r
133 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
134 +Senior Technologist, Computing and Information Technology
\r
135 +Harvard University School of Engineering and Applied Sciences
\r
137 +[ application/pgp-signature ]
\r
139 +[ 4-line signature. Click/Enter to show. ]
\r
140 +_______________________________________________
\r
141 +notmuch mailing list
\r
142 +notmuch@notmuchmail.org
\r
143 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
144 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)
\r
145 +Subject: Re: [notmuch] Working with Maildir storage?
\r
146 +To: notmuch@notmuchmail.org
\r
147 +Date: Wed, 18 Nov 2009 01:02:38 +0600
\r
149 +[ multipart/mixed ]
\r
150 +[ multipart/signed ]
\r
153 +Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:
\r
155 + LK> Resulted in 4604 lines of errors along the lines of:
\r
157 + LK> Error opening
\r
158 + LK> /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
159 + LK> Too many open files
\r
161 +See the patch just posted here.
\r
163 +[ 2-line signature. Click/Enter to show. ]
\r
165 + http://fossarchy.blogspot.com/
\r
166 +[ application/pgp-signature ]
\r
168 +[ 4-line signature. Click/Enter to show. ]
\r
169 +_______________________________________________
\r
170 +notmuch mailing list
\r
171 +notmuch@notmuchmail.org
\r
172 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
173 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)
\r
174 +Subject: Re: [notmuch] Working with Maildir storage?
\r
175 +To: Mikhail Gusarov <dottedmag@dottedmag.net>
\r
176 +Cc: notmuch@notmuchmail.org
\r
177 +Date: Tue, 17 Nov 2009 15:33:01 -0500
\r
179 +[ multipart/mixed ]
\r
180 +[ multipart/signed ]
\r
182 +> See the patch just posted here.
\r
184 +Is the list archived anywhere? The obvious archives
\r
185 +(http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
186 +think I subscribed too late to get the patch (I only just saw the
\r
187 +discussion about it).
\r
189 +It doesn't look like the patch is in git yet.
\r
193 +[ 5-line signature. Click/Enter to show. ]
\r
195 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
196 +Senior Technologist, Computing and Information Technology
\r
197 +Harvard University School of Engineering and Applied Sciences
\r
199 +[ application/pgp-signature ]
\r
201 +[ 4-line signature. Click/Enter to show. ]
\r
202 +_______________________________________________
\r
203 +notmuch mailing list
\r
204 +notmuch@notmuchmail.org
\r
205 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
206 +Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)
\r
207 +Subject: [notmuch] Working with Maildir storage?
\r
208 +To: notmuch@notmuchmail.org
\r
209 +Date: Wed, 18 Nov 2009 02:50:48 +0600
\r
212 +Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars at seas.harvard.edu did gyre and gimble:
\r
214 + LK> Is the list archived anywhere? The obvious archives
\r
215 + LK> (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I
\r
216 + LK> think I subscribed too late to get the patch (I only just saw the
\r
217 + LK> discussion about it).
\r
219 + LK> It doesn't look like the patch is in git yet.
\r
221 +Just has been pushed
\r
223 +[ 10-line signature. Click/Enter to show. ]
\r
225 + http://fossarchy.blogspot.com/
\r
226 +-------------- next part --------------
\r
227 +A non-text attachment was scrubbed...
\r
228 +Name: not available
\r
229 +Type: application/pgp-signature
\r
231 +Desc: not available
\r
232 +URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>
\r
234 +Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)
\r
235 +Subject: [notmuch] Working with Maildir storage?
\r
236 +To: notmuch@notmuchmail.org
\r
237 +Date: Tue, 17 Nov 2009 13:24:13 -0800
\r
239 +On Tue, 17 Nov 2009 15:33:01 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:
\r
240 +> > See the patch just posted here.
\r
242 +I've also pushed a slightly more complicated (and complete) fix to my
\r
243 +private notmuch repository
\r
245 +git://keithp.com/git/notmuch
\r
247 +> Is the list archived anywhere?
\r
249 +Oops. Looks like Carl's mail server is broken. He's traveling to
\r
250 +Barcelona today and so it won't get fixed for a while.
\r
252 +Thanks to everyone for trying out notmuch!
\r
256 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)
\r
257 +Subject: Re: [notmuch] Working with Maildir storage?
\r
258 +To: Keith Packard <keithp@keithp.com>
\r
259 +Cc: notmuch@notmuchmail.org
\r
260 +Date: Tue, 17 Nov 2009 19:50:40 -0500
\r
262 +[ multipart/mixed ]
\r
263 +[ multipart/signed ]
\r
265 +> I've also pushed a slightly more complicated (and complete) fix to my
\r
266 +> private notmuch repository
\r
268 +The version of lib/messages.cc in your repo doesn't build because it's
\r
269 +missing "#include <stdint.h>" (for the uint32_t on line 466).
\r
271 +[ 5-line signature. Click/Enter to show. ]
\r
273 +Lars Kellogg-Stedman <lars@seas.harvard.edu>
\r
274 +Senior Technologist, Computing and Information Technology
\r
275 +Harvard University School of Engineering and Applied Sciences
\r
277 +[ application/pgp-signature ]
\r
279 +[ 4-line signature. Click/Enter to show. ]
\r
280 +_______________________________________________
\r
281 +notmuch mailing list
\r
282 +notmuch@notmuchmail.org
\r
283 +http://notmuchmail.org/mailman/listinfo/notmuch
\r
284 +Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
285 +Subject: [notmuch] Working with Maildir storage?
\r
286 +To: notmuch@notmuchmail.org
\r
287 +Date: Wed, 18 Nov 2009 02:08:10 -0800
\r
289 +On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman <lars at seas.harvard.edu> wrote:
\r
290 +> I saw the LWN article and decided to take a look at notmuch. I'm
\r
291 +> currently using mutt and mairix to index and read a collection of
\r
292 +> Maildir mail folders (around 40,000 messages total).
\r
296 +I hadn't even seen that Keith's blog post had been picked up by lwn.net.
\r
297 +That's very interesting. So, thanks for coming and trying out notmuch.
\r
300 +> /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:
\r
301 +> Too many open files
\r
303 +Sadly, the lwn article coincided with me having just introduced this
\r
304 +bug, and then getting on a Trans-Atlantic flight. So I fixed the bug
\r
305 +fairly quickly, but there was quite a bit of latency before I could push
\r
306 +the fix out. It should be fixed now.
\r
308 +> I'm curious if this is expected behavior (i.e., notmuch does not work
\r
309 +> with Maildir) or if something else is going on.
\r
311 +Notmuch works just fine with maildir---it's one of the things that it
\r