Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / db / d418d945f5995d4350e68c8ca6d46a52b515e3
1 Return-Path: <pieter@praet.org>\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 8D14A431FB6\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:59:01 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id T6UZdNSYPTl2 for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Feb 2012 12:58:57 -0800 (PST)\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id CCD97431FC3\r
21         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
22 Received: by mail-we0-f181.google.com with SMTP id p13so3520649wer.26\r
23         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates\r
25         10.180.99.65 as permitted sender) client-ip=10.180.99.65; \r
26 Authentication-Results: mr.google.com;\r
27         spf=pass (google.com: domain of pieter@praet.org\r
28         designates 10.180.99.65 as permitted sender)\r
29         smtp.mail=pieter@praet.org\r
30 Received: from mr.google.com ([10.180.99.65])\r
31         by 10.180.99.65 with SMTP id eo1mr13158444wib.13.1329685130602\r
32         (num_hops = 1); Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
33 MIME-Version: 1.0\r
34 Received: by 10.180.99.65 with SMTP id eo1mr11067902wib.13.1329685130510;\r
35         Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
36 Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be.\r
37         [81.242.218.104])\r
38         by mx.google.com with ESMTPS id s8sm11454979wiz.8.2012.02.19.12.58.49\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sun, 19 Feb 2012 12:58:50 -0800 (PST)\r
41 From: Pieter Praet <pieter@praet.org>\r
42 To: David Edmondson <dme@dme.org>\r
43 Subject: [PATCH 2/3] test: emacs: toggle eliding of non-matching messages in\r
44         `notmuch-show'\r
45 Date: Sun, 19 Feb 2012 21:56:29 +0100\r
46 Message-Id: <1329684990-12504-3-git-send-email-pieter@praet.org>\r
47 X-Mailer: git-send-email 1.7.8.1\r
48 In-Reply-To: <1329684990-12504-1-git-send-email-pieter@praet.org>\r
49 References: <1328688139-3865-1-git-send-email-dme@dme.org>\r
50         <1329684990-12504-1-git-send-email-pieter@praet.org>\r
51 X-Gm-Message-State:\r
52  ALoCoQlM6VUbRDi+pif7OJY6t3odvsa3pPMcWsxk92HDyVpF93YXDm+GmQqcX5irNi/SjADRtrKy\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Sun, 19 Feb 2012 20:59:01 -0000\r
67 \r
68 See commits 44a544ed, 866ce8b1, 668b66ec.\r
69 ---\r
70  test/emacs                                         |   38 ++++++++++\r
71  .../notmuch-show-elide-non-matching-messages-off   |   79 ++++++++++++++++++++\r
72  .../notmuch-show-elide-non-matching-messages-on    |   75 +++++++++++++++++++\r
73  3 files changed, 192 insertions(+), 0 deletions(-)\r
74  create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off\r
75  create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on\r
76 \r
77 diff --git a/test/emacs b/test/emacs\r
78 index b207d20..320057a 100755\r
79 --- a/test/emacs\r
80 +++ b/test/emacs\r
81 @@ -553,5 +553,43 @@ test_emacs '(let ((notmuch-crypto-process-mime nil))\r
82         (test-visible-output))'\r
83  test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on\r
84  \r
85 +test_begin_subtest "notmuch-show: don't elide non-matching messages"\r
86 +test_emacs '(let ((notmuch-show-only-matching-messages nil))\r
87 +       (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")\r
88 +       (notmuch-test-wait)\r
89 +       (notmuch-search-show-thread)\r
90 +       (notmuch-test-wait)\r
91 +       (test-visible-output))'\r
92 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-off\r
93 +\r
94 +test_begin_subtest "notmuch-show: elide non-matching messages"\r
95 +test_emacs '(let ((notmuch-show-only-matching-messages t))\r
96 +       (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")\r
97 +       (notmuch-test-wait)\r
98 +       (notmuch-search-show-thread)\r
99 +       (notmuch-test-wait)\r
100 +       (test-visible-output))'\r
101 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on\r
102 +\r
103 +test_begin_subtest "notmuch-show: elide non-matching messages (w/ notmuch-show-toggle-elide-non-matching)"\r
104 +test_emacs '(let ((notmuch-show-only-matching-messages nil))\r
105 +       (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")\r
106 +       (notmuch-test-wait)\r
107 +       (notmuch-search-show-thread)\r
108 +       (notmuch-test-wait)\r
109 +       (notmuch-show-toggle-elide-non-matching)\r
110 +       (test-visible-output))'\r
111 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on\r
112 +\r
113 +test_begin_subtest "notmuch-show: elide non-matching messages (w/ prefix arg to notmuch-show)"\r
114 +test_emacs '(let ((notmuch-show-only-matching-messages nil))\r
115 +       (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")\r
116 +       (notmuch-test-wait)\r
117 +       (let ((current-prefix-arg t))\r
118 +         (notmuch-search-show-thread))\r
119 +       (notmuch-test-wait)\r
120 +       (test-visible-output))'\r
121 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on\r
122 +\r
123  \r
124  test_done\r
125 diff --git a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off\r
126 new file mode 100644\r
127 index 0000000..b31fe62\r
128 --- /dev/null\r
129 +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off\r
130 @@ -0,0 +1,79 @@\r
131 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
132 +Subject: [notmuch] Working with Maildir storage?\r
133 +To: notmuch@notmuchmail.org\r
134 +Date: Tue, 17 Nov 2009 14:00:54 -0500\r
135 +\r
136 +[ multipart/mixed ]\r
137 +[ multipart/signed ]\r
138 +[ text/plain ]\r
139 +I saw the LWN article and decided to take a look at notmuch.  I'm\r
140 +currently using mutt and mairix to index and read a collection of\r
141 +Maildir mail folders (around 40,000 messages total).\r
142 +\r
143 +notmuch indexed the messages without complaint, but my attempt at\r
144 +searching bombed out. Running, for example:\r
145 +\r
146 +  notmuch search storage\r
147 +\r
148 +Resulted in 4604 lines of errors along the lines of:\r
149 +\r
150 +  Error opening\r
151 +  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
152 +  Too many open files\r
153 +\r
154 +I'm curious if this is expected behavior (i.e., notmuch does not work\r
155 +with Maildir) or if something else is going on.\r
156 +\r
157 +Cheers,\r
158 +\r
159 +[ 4-line signature. Click/Enter to show. ]\r
160 +[ application/pgp-signature ]\r
161 +[ text/plain ]\r
162 +[ 4-line signature. Click/Enter to show. ]\r
163 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
164 +  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
165 +  Subject: Re: [notmuch] Working with Maildir storage?\r
166 +  To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
167 +  Cc: notmuch@notmuchmail.org\r
168 +  Date: Tue, 17 Nov 2009 15:33:01 -0500\r
169 +\r
170 +  [ multipart/mixed ]\r
171 +  [ multipart/signed ]\r
172 +  [ text/plain ]\r
173 +  > See the patch just posted here.\r
174 +\r
175 +  Is the list archived anywhere?  The obvious archives\r
176 +  (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
177 +  think I subscribed too late to get the patch (I only just saw the\r
178 +  discussion about it).\r
179 +\r
180 +  It doesn't look like the patch is in git yet.\r
181 +\r
182 +  -- Lars\r
183 +\r
184 +  [ 4-line signature. Click/Enter to show. ]\r
185 +  [ application/pgp-signature ]\r
186 +  [ text/plain ]\r
187 +  [ 4-line signature. Click/Enter to show. ]\r
188 +   Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
189 +   Keith Packard <keithp@keithp.com> (2009-11-17) (inbox unread)\r
190 +    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
191 +    Subject: Re: [notmuch] Working with Maildir storage?\r
192 +    To: Keith Packard <keithp@keithp.com>\r
193 +    Cc: notmuch@notmuchmail.org\r
194 +    Date: Tue, 17 Nov 2009 19:50:40 -0500\r
195 +\r
196 +    [ multipart/mixed ]\r
197 +    [ multipart/signed ]\r
198 +    [ text/plain ]\r
199 +    > I've also pushed a slightly more complicated (and complete) fix to my\r
200 +    > private notmuch repository\r
201 +\r
202 +    The version of lib/messages.cc in your repo doesn't build because it's\r
203 +    missing "#include <stdint.h>" (for the uint32_t on line 466).\r
204 +\r
205 +    [ 4-line signature. Click/Enter to show. ]\r
206 +    [ application/pgp-signature ]\r
207 +    [ text/plain ]\r
208 +    [ 4-line signature. Click/Enter to show. ]\r
209 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)\r
210 diff --git a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on\r
211 new file mode 100644\r
212 index 0000000..bafb479\r
213 --- /dev/null\r
214 +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on\r
215 @@ -0,0 +1,75 @@\r
216 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
217 +Subject: [notmuch] Working with Maildir storage?\r
218 +To: notmuch@notmuchmail.org\r
219 +Date: Tue, 17 Nov 2009 14:00:54 -0500\r
220 +\r
221 +[ multipart/mixed ]\r
222 +[ multipart/signed ]\r
223 +[ text/plain ]\r
224 +I saw the LWN article and decided to take a look at notmuch.  I'm\r
225 +currently using mutt and mairix to index and read a collection of\r
226 +Maildir mail folders (around 40,000 messages total).\r
227 +\r
228 +notmuch indexed the messages without complaint, but my attempt at\r
229 +searching bombed out. Running, for example:\r
230 +\r
231 +  notmuch search storage\r
232 +\r
233 +Resulted in 4604 lines of errors along the lines of:\r
234 +\r
235 +  Error opening\r
236 +  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
237 +  Too many open files\r
238 +\r
239 +I'm curious if this is expected behavior (i.e., notmuch does not work\r
240 +with Maildir) or if something else is going on.\r
241 +\r
242 +Cheers,\r
243 +\r
244 +[ 4-line signature. Click/Enter to show. ]\r
245 +[ application/pgp-signature ]\r
246 +[ text/plain ]\r
247 +[ 4-line signature. Click/Enter to show. ]\r
248 +  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
249 +  Subject: Re: [notmuch] Working with Maildir storage?\r
250 +  To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
251 +  Cc: notmuch@notmuchmail.org\r
252 +  Date: Tue, 17 Nov 2009 15:33:01 -0500\r
253 +\r
254 +  [ multipart/mixed ]\r
255 +  [ multipart/signed ]\r
256 +  [ text/plain ]\r
257 +  > See the patch just posted here.\r
258 +\r
259 +  Is the list archived anywhere?  The obvious archives\r
260 +  (http://notmuchmail.org/pipermail/notmuch/) aren't available, and I\r
261 +  think I subscribed too late to get the patch (I only just saw the\r
262 +  discussion about it).\r
263 +\r
264 +  It doesn't look like the patch is in git yet.\r
265 +\r
266 +  -- Lars\r
267 +\r
268 +  [ 4-line signature. Click/Enter to show. ]\r
269 +  [ application/pgp-signature ]\r
270 +  [ text/plain ]\r
271 +  [ 4-line signature. Click/Enter to show. ]\r
272 +    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
273 +    Subject: Re: [notmuch] Working with Maildir storage?\r
274 +    To: Keith Packard <keithp@keithp.com>\r
275 +    Cc: notmuch@notmuchmail.org\r
276 +    Date: Tue, 17 Nov 2009 19:50:40 -0500\r
277 +\r
278 +    [ multipart/mixed ]\r
279 +    [ multipart/signed ]\r
280 +    [ text/plain ]\r
281 +    > I've also pushed a slightly more complicated (and complete) fix to my\r
282 +    > private notmuch repository\r
283 +\r
284 +    The version of lib/messages.cc in your repo doesn't build because it's\r
285 +    missing "#include <stdint.h>" (for the uint32_t on line 466).\r
286 +\r
287 +    [ 4-line signature. Click/Enter to show. ]\r
288 +    [ application/pgp-signature ]\r
289 +    [ text/plain ]\r
290 +    [ 4-line signature. Click/Enter to show. ]\r
291 -- \r
292 1.7.8.1\r
293 \r