Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / a1 / 223e596a25414705da32b44dbe5e313ceb533c
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
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 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
26         rupAo95a4ho3LT\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
34         the indentation\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
43 MIME-Version: 1.0\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
48 X-Y-GMX-Trusted: 0\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\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
62 \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
68 \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
73 ---\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
76 one.\r
77 \r
78  test/emacs                                         |    7 +\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
82 \r
83 diff --git a/test/emacs b/test/emacs\r
84 index 0303d7d..6e201ba 100755\r
85 --- a/test/emacs\r
86 +++ b/test/emacs\r
87 @@ -50,6 +50,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")\r
88             (test-output)"\r
89  test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage\r
90  \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
95 +             (test-output))"\r
96 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage-without-indentation\r
97 +\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
104 --- /dev/null\r
105 +++ b/test/notmuch-show-thread-maildir-storage-without-indentation\r
106 @@ -0,0 +1,215 @@\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
111 +\r
112 +[ multipart/mixed ]\r
113 +[ multipart/signed ]\r
114 +[ text/plain ]\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
118 +\r
119 +notmuch indexed the messages without complaint, but my attempt at\r
120 +searching bombed out. Running, for example:\r
121 +\r
122 +  notmuch search storage\r
123 +\r
124 +Resulted in 4604 lines of errors along the lines of:\r
125 +\r
126 +  Error opening\r
127 +  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
128 +  Too many open files\r
129 +\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
132 +\r
133 +Cheers,\r
134 +\r
135 +[ 5-line signature. Click/Enter to show. ]\r
136 +-- \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
140 +\r
141 +[ application/pgp-signature ]\r
142 +[ text/plain ]\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
152 +\r
153 +[ multipart/mixed ]\r
154 +[ multipart/signed ]\r
155 +[ text/plain ]\r
156 +\r
157 +Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:\r
158 +\r
159 + LK> Resulted in 4604 lines of errors along the lines of:\r
160 +\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
164 +\r
165 +See the patch just posted here.\r
166 +\r
167 +[ 2-line signature. Click/Enter to show. ]\r
168 +-- \r
169 +  http://fossarchy.blogspot.com/\r
170 +[ application/pgp-signature ]\r
171 +[ text/plain ]\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
182 +\r
183 +[ multipart/mixed ]\r
184 +[ multipart/signed ]\r
185 +[ text/plain ]\r
186 +> See the patch just posted here.\r
187 +\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
192 +\r
193 +It doesn't look like the patch is in git yet.\r
194 +\r
195 +-- Lars\r
196 +\r
197 +[ 5-line signature. Click/Enter to show. ]\r
198 +-- \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
202 +\r
203 +[ application/pgp-signature ]\r
204 +[ text/plain ]\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
214 +\r
215 +\r
216 +Twas brillig at 15:33:01 17.11.2009 UTC-05 when lars at seas.harvard.edu did gyre and gimble:\r
217 +\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
222 +\r
223 + LK> It doesn't look like the patch is in git yet.\r
224 +\r
225 +Just has been pushed\r
226 +\r
227 +[ 10-line signature. Click/Enter to show. ]\r
228 +-- \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
234 +Size: 834 bytes\r
235 +Desc: not available\r
236 +URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>\r
237 +\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
242 +\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
245 +\r
246 +I've also pushed a slightly more complicated (and complete) fix to my\r
247 +private notmuch repository\r
248 +\r
249 +git://keithp.com/git/notmuch\r
250 +\r
251 +> Is the list archived anywhere?\r
252 +\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
255 +\r
256 +Thanks to everyone for trying out notmuch!\r
257 +\r
258 +-keith\r
259 +\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
265 +\r
266 +[ multipart/mixed ]\r
267 +[ multipart/signed ]\r
268 +[ text/plain ]\r
269 +> I've also pushed a slightly more complicated (and complete) fix to my\r
270 +> private notmuch repository\r
271 +\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
274 +\r
275 +[ 5-line signature. Click/Enter to show. ]\r
276 +-- \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
280 +\r
281 +[ application/pgp-signature ]\r
282 +[ text/plain ]\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
292 +\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
297 +\r
298 +Welcome, Lars!\r
299 +\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
302 +\r
303 +>   Error opening\r
304 +>   /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
305 +>   Too many open files\r
306 +\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
311 +\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
314 +\r
315 +Notmuch works just fine with maildir---it's one of the things that it\r
316 +likes the best.\r
317 +\r
318 +Happy hacking,\r
319 +\r
320 +-Carl\r
321 +\r
322 -- \r
323 1.7.7\r
324 \r