Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 1c / 2d0416561d4c85acf2b01dfc968ca2a930aa19
1 Return-Path: <markwalters1009@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 F35E2429E5A\r
6         for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:56:21 -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.514\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.514 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7, URI_HEX=1.313] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id iX+fBW78Y++t for <notmuch@notmuchmail.org>;\r
18         Tue, 29 Oct 2013 15:56:12 -0700 (PDT)\r
19 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
20         [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 4B315429E3B\r
23         for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:55:58 -0700 (PDT)\r
24 Received: by mail-wi0-f176.google.com with SMTP id ex4so3606171wid.3\r
25         for <notmuch@notmuchmail.org>; Tue, 29 Oct 2013 15:55:54 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:in-reply-to:references\r
28         :mime-version:content-type:content-transfer-encoding;\r
29         bh=8CMg1ogsOXAJPlyIgo3FS0rAJ1o8E6+pw1MA6uriH3Q=;\r
30         b=wk+L1URMbRxzTNiMH18udRbCimnQjQjJ99DE3y9GtehGk04V4v+WpJ/DXiuaGyrA6u\r
31         wpdm1i89HC+Dz5SRaYLdzQKfvXfYo3r3Z8rDekPRYpCUpPEOwRZuF6lI5XYJmpaVV7PF\r
32         GZKjs+RqQ4it9rct5hVxJqWMNGoFlzCExKiv2yqaueN1KjPT2T/U+Krk69vwWoCnZZho\r
33         3lYfdSuK8hwLjCAsxUHZhDDHBegmsPose9ItKTi74jkoyNKbuB0JNYab8x8chI4ezvgl\r
34         mxU/eC6GfjB9884gYjHsMXwARZ0WzsbV4HWpVH/MGg05DKFQ5y3jYJl4FyxAEtaRLMwn\r
35         TNkA==\r
36 X-Received: by 10.180.73.109 with SMTP id k13mr70484wiv.35.1383087352400;\r
37         Tue, 29 Oct 2013 15:55:52 -0700 (PDT)\r
38 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
39         by mx.google.com with ESMTPSA id j3sm9509427wie.2.2013.10.29.15.55.50\r
40         for <multiple recipients>\r
41         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
42         Tue, 29 Oct 2013 15:55:52 -0700 (PDT)\r
43 From: Mark Walters <markwalters1009@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 05/11] test: move emacs-tree test into mainline\r
46 Date: Tue, 29 Oct 2013 22:55:32 +0000\r
47 Message-Id: <1383087338-10220-6-git-send-email-markwalters1009@gmail.com>\r
48 X-Mailer: git-send-email 1.7.9.1\r
49 In-Reply-To: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>\r
50 References: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=UTF-8\r
53 Content-Transfer-Encoding: 8bit\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: Tue, 29 Oct 2013 22:56:22 -0000\r
67 \r
68 We move the emacs-tree test and associated files into the main test\r
69 directory and add the test to the list in notmuch-test.\r
70 ---\r
71  contrib/notmuch-pick/test/emacs-tree               |  210 --------------------\r
72  .../tree.expected-output/notmuch-tree-show-window  |   40 ----\r
73  .../notmuch-tree-single-thread                     |    6 -\r
74  .../tree.expected-output/notmuch-tree-tag-inbox    |   53 -----\r
75  .../notmuch-tree-tag-inbox-tagged                  |   53 -----\r
76  .../notmuch-tree-tag-inbox-thread-tagged           |   53 -----\r
77  test/emacs-tree                                    |  210 ++++++++++++++++++++\r
78  test/notmuch-test                                  |    1 +\r
79  test/tree.expected-output/notmuch-tree-show-window |   40 ++++\r
80  .../notmuch-tree-single-thread                     |    6 +\r
81  test/tree.expected-output/notmuch-tree-tag-inbox   |   53 +++++\r
82  .../notmuch-tree-tag-inbox-tagged                  |   53 +++++\r
83  .../notmuch-tree-tag-inbox-thread-tagged           |   53 +++++\r
84  13 files changed, 416 insertions(+), 415 deletions(-)\r
85  delete mode 100755 contrib/notmuch-pick/test/emacs-tree\r
86  delete mode 100644 contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-show-window\r
87  delete mode 100644 contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-single-thread\r
88  delete mode 100644 contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox\r
89  delete mode 100644 contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
90  delete mode 100644 contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
91  create mode 100755 test/emacs-tree\r
92  create mode 100644 test/tree.expected-output/notmuch-tree-show-window\r
93  create mode 100644 test/tree.expected-output/notmuch-tree-single-thread\r
94  create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox\r
95  create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
96  create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
97 \r
98 diff --git a/contrib/notmuch-pick/test/emacs-tree b/contrib/notmuch-pick/test/emacs-tree\r
99 deleted file mode 100755\r
100 index 05ce85d..0000000\r
101 --- a/contrib/notmuch-pick/test/emacs-tree\r
102 +++ /dev/null\r
103 @@ -1,210 +0,0 @@\r
104 -#!/usr/bin/env bash\r
105 -\r
106 -test_description="emacs tree view interface"\r
107 -. test-lib.sh\r
108 -\r
109 -EXPECTED=$TEST_DIRECTORY/tree.expected-output\r
110 -\r
111 -add_email_corpus\r
112 -test_begin_subtest "Do we have emacs"\r
113 -test_emacs '(insert "hello\n")\r
114 -           (test-output)'\r
115 -cat <<EOF >EXPECTED\r
116 -hello\r
117 -EOF\r
118 -test_expect_equal_file OUTPUT EXPECTED\r
119 -\r
120 -test_begin_subtest "Basic notmuch-tree view in emacs"\r
121 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
122 -           (require (quote notmuch-tree))\r
123 -           (notmuch-tree "tag:inbox")\r
124 -           (notmuch-test-wait)\r
125 -           (test-output)\r
126 -           (delete-other-windows)'\r
127 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
128 -\r
129 -test_begin_subtest "Refreshed notmuch-tree view in emacs"\r
130 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
131 -           (require (quote notmuch-tree))\r
132 -           (notmuch-tree "tag:inbox")\r
133 -           (notmuch-test-wait)\r
134 -           (notmuch-tree-refresh-view)\r
135 -           (notmuch-test-wait)\r
136 -           (test-output)\r
137 -           (delete-other-windows)'\r
138 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
139 -\r
140 -# In the following tag tests we make sure the display is updated\r
141 -# correctly and, in a separate test, that the database is updated\r
142 -# correctly.\r
143 -\r
144 -test_begin_subtest "Tag message in notmuch tree view (display)"\r
145 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
146 -           (require (quote notmuch-tree))\r
147 -           (notmuch-tree "tag:inbox")\r
148 -           (notmuch-test-wait)\r
149 -           (forward-line)\r
150 -           (notmuch-tree-tag (list "+test_tag"))\r
151 -           (test-output)\r
152 -           (delete-other-windows)'\r
153 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-tagged\r
154 -\r
155 -test_begin_subtest "Tag message in notmuch tree view (database)"\r
156 -output=$(notmuch search --output=messages 'tag:test_tag')\r
157 -test_expect_equal "$output" "id:877h1wv7mg.fsf@inf-8657.int-evry.fr"\r
158 -\r
159 -test_begin_subtest "Untag message in notmuch tree view"\r
160 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
161 -           (require (quote notmuch-tree))\r
162 -           (notmuch-tree "tag:inbox")\r
163 -           (notmuch-test-wait)\r
164 -           (forward-line)\r
165 -           (notmuch-tree-tag (list "-test_tag"))\r
166 -           (test-output)\r
167 -           (delete-other-windows)'\r
168 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
169 -\r
170 -test_begin_subtest "Untag message in notmuch tree view (database)"\r
171 -output=$(notmuch search --output=messages 'tag:test_tag')\r
172 -test_expect_equal "$output" ""\r
173 -\r
174 -test_begin_subtest "Tag thread in notmuch tree view"\r
175 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
176 -           (require (quote notmuch-tree))\r
177 -           (notmuch-tree "tag:inbox")\r
178 -           (notmuch-test-wait)\r
179 -           ;; move to a sizable thread\r
180 -           (forward-line 26)\r
181 -           (notmuch-tree-tag-thread (list "+test_thread_tag"))\r
182 -           (test-output)\r
183 -           (delete-other-windows)'\r
184 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-thread-tagged\r
185 -\r
186 -test_begin_subtest "Tag message in notmuch tree view (database)"\r
187 -output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
188 -test_expect_equal "$output" \\r
189 -"id:87ocn0qh6d.fsf@yoom.home.cworth.org\r
190 -id:20091118005040.GA25380@dottiness.seas.harvard.edu\r
191 -id:yunaayketfm.fsf@aiko.keithp.com\r
192 -id:87fx8can9z.fsf@vertex.dottedmag\r
193 -id:20091117203301.GV3165@dottiness.seas.harvard.edu\r
194 -id:87iqd9rn3l.fsf@vertex.dottedmag\r
195 -id:20091117190054.GU3165@dottiness.seas.harvard.edu"\r
196 -\r
197 -test_begin_subtest "Untag thread in notmuch tree view"\r
198 -test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
199 -           (require (quote notmuch-tree))\r
200 -           (notmuch-tree "tag:inbox")\r
201 -           (notmuch-test-wait)\r
202 -           ;; move to the same sizable thread as above\r
203 -           (forward-line 26)\r
204 -           (notmuch-tree-tag-thread (list "-test_thread_tag"))\r
205 -           (test-output)\r
206 -           (delete-other-windows)'\r
207 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
208 -\r
209 -test_begin_subtest "Untag message in notmuch tree view (database)"\r
210 -output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
211 -test_expect_equal "$output" ""\r
212 -\r
213 -test_begin_subtest "Navigation of notmuch-hello to search results"\r
214 -test_emacs '(notmuch-hello)\r
215 -           (goto-char (point-min))\r
216 -           (re-search-forward "inbox")\r
217 -           (widget-button-press (1- (point)))\r
218 -           (notmuch-test-wait)\r
219 -           (notmuch-tree-from-search-current-query)\r
220 -           (notmuch-test-wait)\r
221 -           (test-output)\r
222 -           (delete-other-windows)'\r
223 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
224 -\r
225 -test_begin_subtest "Tree view of a single thread (from search)"\r
226 -test_emacs '(notmuch-hello)\r
227 -           (goto-char (point-min))\r
228 -           (re-search-forward "inbox")\r
229 -           (widget-button-press (1- (point)))\r
230 -           (notmuch-test-wait)\r
231 -           (notmuch-tree-from-search-thread)\r
232 -           (notmuch-test-wait)\r
233 -           (test-output)\r
234 -           (delete-other-windows)'\r
235 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-single-thread\r
236 -\r
237 -test_begin_subtest "Tree view of a single thread (from show)"\r
238 -test_emacs '(notmuch-hello)\r
239 -           (goto-char (point-min))\r
240 -           (re-search-forward "inbox")\r
241 -           (widget-button-press (1- (point)))\r
242 -           (notmuch-test-wait)\r
243 -           (notmuch-search-show-thread)\r
244 -           (notmuch-tree-from-show-current-query)\r
245 -           (notmuch-test-wait)\r
246 -           (test-output)\r
247 -           (delete-other-windows)'\r
248 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-single-thread\r
249 -\r
250 -test_begin_subtest "Message window of tree view"\r
251 -test_emacs '(notmuch-hello)\r
252 -           (goto-char (point-min))\r
253 -           (re-search-forward "inbox")\r
254 -           (widget-button-press (1- (point)))\r
255 -           (notmuch-test-wait)\r
256 -           (notmuch-search-next-thread)\r
257 -           (notmuch-tree-from-search-thread)\r
258 -           (notmuch-test-wait)\r
259 -           (select-window notmuch-tree-message-window)\r
260 -           (test-output)\r
261 -           (delete-other-windows)'\r
262 -cp OUTPUT /tmp/mjwout\r
263 -test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-show-window\r
264 -\r
265 -test_begin_subtest "Stash id"\r
266 -output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
267 -                    (require (quote notmuch-tree))\r
268 -                    (notmuch-tree "id:1258498485-sup-142@elly")\r
269 -                    (notmuch-test-wait)\r
270 -                    (notmuch-show-stash-message-id)')\r
271 -test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142@elly\""\r
272 -\r
273 -test_begin_subtest "Move to next matching message"\r
274 -output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
275 -                    (require (quote notmuch-tree))\r
276 -                    (notmuch-tree "from:cworth")\r
277 -                    (notmuch-test-wait)\r
278 -                    (notmuch-tree-next-matching-message)\r
279 -                    (notmuch-show-stash-message-id)')\r
280 -test_expect_equal "$output" "\"Stashed: id:878we4qdqf.fsf@yoom.home.cworth.org\""\r
281 -\r
282 -test_begin_subtest "Move to next thread"\r
283 -output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
284 -                    (require (quote notmuch-tree))\r
285 -                    (notmuch-tree "tag:inbox")\r
286 -                    (notmuch-test-wait)\r
287 -                    (forward-line 26)\r
288 -                    (notmuch-tree-next-thread)\r
289 -                    (notmuch-show-stash-message-id)')\r
290 -test_expect_equal "$output" "\"Stashed: id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net\""\r
291 -\r
292 -test_begin_subtest "Move to previous thread"\r
293 -output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
294 -                    (require (quote notmuch-tree))\r
295 -                    (notmuch-tree "tag:inbox")\r
296 -                    (notmuch-test-wait)\r
297 -                    (forward-line 26)\r
298 -                    (notmuch-tree-prev-thread)\r
299 -                    (notmuch-show-stash-message-id)')\r
300 -test_expect_equal "$output" "\"Stashed: id:20091117190054.GU3165@dottiness.seas.harvard.edu\""\r
301 -\r
302 -test_begin_subtest "Move to previous previous thread"\r
303 -output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
304 -                    (require (quote notmuch-tree))\r
305 -                    (notmuch-tree "tag:inbox")\r
306 -                    (notmuch-test-wait)\r
307 -                    (forward-line 26)\r
308 -                    (notmuch-tree-prev-thread)\r
309 -                    (notmuch-tree-prev-thread)\r
310 -                    (notmuch-show-stash-message-id)')\r
311 -test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\""\r
312 -\r
313 -test_done\r
314 diff --git a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-show-window b/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-show-window\r
315 deleted file mode 100644\r
316 index e16792b..0000000\r
317 --- a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-show-window\r
318 +++ /dev/null\r
319 @@ -1,40 +0,0 @@\r
320 -Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
321 -Subject: [notmuch] Working with Maildir storage?\r
322 -To: notmuch@notmuchmail.org\r
323 -Date: Tue, 17 Nov 2009 14:00:54 -0500\r
324 -\r
325 -[ multipart/mixed ]\r
326 -[ multipart/signed ]\r
327 -[ text/plain ]\r
328 -I saw the LWN article and decided to take a look at notmuch.  I'm\r
329 -currently using mutt and mairix to index and read a collection of\r
330 -Maildir mail folders (around 40,000 messages total).\r
331 -\r
332 -notmuch indexed the messages without complaint, but my attempt at\r
333 -searching bombed out. Running, for example:\r
334 -\r
335 -  notmuch search storage\r
336 -\r
337 -Resulted in 4604 lines of errors along the lines of:\r
338 -\r
339 -  Error opening\r
340 -  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
341 -  Too many open files\r
342 -\r
343 -I'm curious if this is expected behavior (i.e., notmuch does not work\r
344 -with Maildir) or if something else is going on.\r
345 -\r
346 -Cheers,\r
347 -\r
348 -[ 4-line signature. Click/Enter to show. ]\r
349 --- \r
350 -Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
351 -Senior Technologist, Computing and Information Technology\r
352 -Harvard University School of Engineering and Applied Sciences\r
353 -[ application/pgp-signature ]\r
354 -[ text/plain ]\r
355 -[ 4-line signature. Click/Enter to show. ]\r
356 -_______________________________________________\r
357 -notmuch mailing list\r
358 -notmuch@notmuchmail.org\r
359 -http://notmuchmail.org/mailman/listinfo/notmuch\r
360 diff --git a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-single-thread b/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-single-thread\r
361 deleted file mode 100644\r
362 index c9e5ef8..0000000\r
363 --- a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-single-thread\r
364 +++ /dev/null\r
365 @@ -1,6 +0,0 @@\r
366 -  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox)\r
367 -  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
368 -  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
369 -  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
370 -  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
371 -End of search results.\r
372 diff --git a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox b/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox\r
373 deleted file mode 100644\r
374 index 484141e..0000000\r
375 --- a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox\r
376 +++ /dev/null\r
377 @@ -1,53 +0,0 @@\r
378 -  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
379 -  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, unread)\r
380 -  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
381 -  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
382 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
383 -  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
384 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
385 -  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
386 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
387 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
388 -  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
389 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
390 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
391 -  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
392 -  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
393 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
394 -  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
395 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
396 -  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
397 -  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
398 -  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
399 -  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
400 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
401 -  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, unread)\r
402 -  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, unread)\r
403 -  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, unread)\r
404 -  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, unread)\r
405 -  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, unread)\r
406 -  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, unread)\r
407 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
408 -  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
409 -  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
410 -  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
411 -  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
412 -  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
413 -  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
414 -  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
415 -  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
416 -  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
417 -  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
418 -  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
419 -  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
420 -  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
421 -  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
422 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
423 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
424 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
425 -  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
426 -  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
427 -  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
428 -  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
429 -  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
430 -End of search results.\r
431 diff --git a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-tagged b/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
432 deleted file mode 100644\r
433 index 1f75a34..0000000\r
434 --- a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
435 +++ /dev/null\r
436 @@ -1,53 +0,0 @@\r
437 -  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
438 -  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, test_tag, unread)\r
439 -  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
440 -  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
441 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
442 -  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
443 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
444 -  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
445 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
446 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
447 -  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
448 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
449 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
450 -  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
451 -  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
452 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
453 -  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
454 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
455 -  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
456 -  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
457 -  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
458 -  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
459 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
460 -  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, unread)\r
461 -  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, unread)\r
462 -  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, unread)\r
463 -  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, unread)\r
464 -  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, unread)\r
465 -  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, unread)\r
466 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
467 -  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
468 -  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
469 -  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
470 -  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
471 -  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
472 -  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
473 -  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
474 -  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
475 -  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
476 -  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
477 -  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
478 -  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
479 -  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
480 -  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
481 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
482 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
483 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
484 -  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
485 -  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
486 -  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
487 -  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
488 -  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
489 -End of search results.\r
490 diff --git a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged b/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
491 deleted file mode 100644\r
492 index a7aba6e..0000000\r
493 --- a/contrib/notmuch-pick/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
494 +++ /dev/null\r
495 @@ -1,53 +0,0 @@\r
496 -  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
497 -  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, unread)\r
498 -  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
499 -  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
500 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
501 -  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
502 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
503 -  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
504 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
505 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
506 -  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
507 -  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
508 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
509 -  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
510 -  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
511 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
512 -  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
513 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
514 -  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
515 -  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
516 -  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
517 -  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
518 -  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
519 -  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, test_thread_tag, unread)\r
520 -  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, test_thread_tag, unread)\r
521 -  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, test_thread_tag, unread)\r
522 -  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, test_thread_tag, unread)\r
523 -  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, test_thread_tag, unread)\r
524 -  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, test_thread_tag, unread)\r
525 -  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, test_thread_tag, unread)\r
526 -  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
527 -  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
528 -  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
529 -  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
530 -  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
531 -  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
532 -  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
533 -  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
534 -  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
535 -  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
536 -  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
537 -  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
538 -  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
539 -  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
540 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
541 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
542 -  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
543 -  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
544 -  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
545 -  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
546 -  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
547 -  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
548 -End of search results.\r
549 diff --git a/test/emacs-tree b/test/emacs-tree\r
550 new file mode 100755\r
551 index 0000000..05ce85d\r
552 --- /dev/null\r
553 +++ b/test/emacs-tree\r
554 @@ -0,0 +1,210 @@\r
555 +#!/usr/bin/env bash\r
556 +\r
557 +test_description="emacs tree view interface"\r
558 +. test-lib.sh\r
559 +\r
560 +EXPECTED=$TEST_DIRECTORY/tree.expected-output\r
561 +\r
562 +add_email_corpus\r
563 +test_begin_subtest "Do we have emacs"\r
564 +test_emacs '(insert "hello\n")\r
565 +           (test-output)'\r
566 +cat <<EOF >EXPECTED\r
567 +hello\r
568 +EOF\r
569 +test_expect_equal_file OUTPUT EXPECTED\r
570 +\r
571 +test_begin_subtest "Basic notmuch-tree view in emacs"\r
572 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
573 +           (require (quote notmuch-tree))\r
574 +           (notmuch-tree "tag:inbox")\r
575 +           (notmuch-test-wait)\r
576 +           (test-output)\r
577 +           (delete-other-windows)'\r
578 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
579 +\r
580 +test_begin_subtest "Refreshed notmuch-tree view in emacs"\r
581 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
582 +           (require (quote notmuch-tree))\r
583 +           (notmuch-tree "tag:inbox")\r
584 +           (notmuch-test-wait)\r
585 +           (notmuch-tree-refresh-view)\r
586 +           (notmuch-test-wait)\r
587 +           (test-output)\r
588 +           (delete-other-windows)'\r
589 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
590 +\r
591 +# In the following tag tests we make sure the display is updated\r
592 +# correctly and, in a separate test, that the database is updated\r
593 +# correctly.\r
594 +\r
595 +test_begin_subtest "Tag message in notmuch tree view (display)"\r
596 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
597 +           (require (quote notmuch-tree))\r
598 +           (notmuch-tree "tag:inbox")\r
599 +           (notmuch-test-wait)\r
600 +           (forward-line)\r
601 +           (notmuch-tree-tag (list "+test_tag"))\r
602 +           (test-output)\r
603 +           (delete-other-windows)'\r
604 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-tagged\r
605 +\r
606 +test_begin_subtest "Tag message in notmuch tree view (database)"\r
607 +output=$(notmuch search --output=messages 'tag:test_tag')\r
608 +test_expect_equal "$output" "id:877h1wv7mg.fsf@inf-8657.int-evry.fr"\r
609 +\r
610 +test_begin_subtest "Untag message in notmuch tree view"\r
611 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
612 +           (require (quote notmuch-tree))\r
613 +           (notmuch-tree "tag:inbox")\r
614 +           (notmuch-test-wait)\r
615 +           (forward-line)\r
616 +           (notmuch-tree-tag (list "-test_tag"))\r
617 +           (test-output)\r
618 +           (delete-other-windows)'\r
619 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
620 +\r
621 +test_begin_subtest "Untag message in notmuch tree view (database)"\r
622 +output=$(notmuch search --output=messages 'tag:test_tag')\r
623 +test_expect_equal "$output" ""\r
624 +\r
625 +test_begin_subtest "Tag thread in notmuch tree view"\r
626 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
627 +           (require (quote notmuch-tree))\r
628 +           (notmuch-tree "tag:inbox")\r
629 +           (notmuch-test-wait)\r
630 +           ;; move to a sizable thread\r
631 +           (forward-line 26)\r
632 +           (notmuch-tree-tag-thread (list "+test_thread_tag"))\r
633 +           (test-output)\r
634 +           (delete-other-windows)'\r
635 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-thread-tagged\r
636 +\r
637 +test_begin_subtest "Tag message in notmuch tree view (database)"\r
638 +output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
639 +test_expect_equal "$output" \\r
640 +"id:87ocn0qh6d.fsf@yoom.home.cworth.org\r
641 +id:20091118005040.GA25380@dottiness.seas.harvard.edu\r
642 +id:yunaayketfm.fsf@aiko.keithp.com\r
643 +id:87fx8can9z.fsf@vertex.dottedmag\r
644 +id:20091117203301.GV3165@dottiness.seas.harvard.edu\r
645 +id:87iqd9rn3l.fsf@vertex.dottedmag\r
646 +id:20091117190054.GU3165@dottiness.seas.harvard.edu"\r
647 +\r
648 +test_begin_subtest "Untag thread in notmuch tree view"\r
649 +test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
650 +           (require (quote notmuch-tree))\r
651 +           (notmuch-tree "tag:inbox")\r
652 +           (notmuch-test-wait)\r
653 +           ;; move to the same sizable thread as above\r
654 +           (forward-line 26)\r
655 +           (notmuch-tree-tag-thread (list "-test_thread_tag"))\r
656 +           (test-output)\r
657 +           (delete-other-windows)'\r
658 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
659 +\r
660 +test_begin_subtest "Untag message in notmuch tree view (database)"\r
661 +output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
662 +test_expect_equal "$output" ""\r
663 +\r
664 +test_begin_subtest "Navigation of notmuch-hello to search results"\r
665 +test_emacs '(notmuch-hello)\r
666 +           (goto-char (point-min))\r
667 +           (re-search-forward "inbox")\r
668 +           (widget-button-press (1- (point)))\r
669 +           (notmuch-test-wait)\r
670 +           (notmuch-tree-from-search-current-query)\r
671 +           (notmuch-test-wait)\r
672 +           (test-output)\r
673 +           (delete-other-windows)'\r
674 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
675 +\r
676 +test_begin_subtest "Tree view of a single thread (from search)"\r
677 +test_emacs '(notmuch-hello)\r
678 +           (goto-char (point-min))\r
679 +           (re-search-forward "inbox")\r
680 +           (widget-button-press (1- (point)))\r
681 +           (notmuch-test-wait)\r
682 +           (notmuch-tree-from-search-thread)\r
683 +           (notmuch-test-wait)\r
684 +           (test-output)\r
685 +           (delete-other-windows)'\r
686 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-single-thread\r
687 +\r
688 +test_begin_subtest "Tree view of a single thread (from show)"\r
689 +test_emacs '(notmuch-hello)\r
690 +           (goto-char (point-min))\r
691 +           (re-search-forward "inbox")\r
692 +           (widget-button-press (1- (point)))\r
693 +           (notmuch-test-wait)\r
694 +           (notmuch-search-show-thread)\r
695 +           (notmuch-tree-from-show-current-query)\r
696 +           (notmuch-test-wait)\r
697 +           (test-output)\r
698 +           (delete-other-windows)'\r
699 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-single-thread\r
700 +\r
701 +test_begin_subtest "Message window of tree view"\r
702 +test_emacs '(notmuch-hello)\r
703 +           (goto-char (point-min))\r
704 +           (re-search-forward "inbox")\r
705 +           (widget-button-press (1- (point)))\r
706 +           (notmuch-test-wait)\r
707 +           (notmuch-search-next-thread)\r
708 +           (notmuch-tree-from-search-thread)\r
709 +           (notmuch-test-wait)\r
710 +           (select-window notmuch-tree-message-window)\r
711 +           (test-output)\r
712 +           (delete-other-windows)'\r
713 +cp OUTPUT /tmp/mjwout\r
714 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-show-window\r
715 +\r
716 +test_begin_subtest "Stash id"\r
717 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
718 +                    (require (quote notmuch-tree))\r
719 +                    (notmuch-tree "id:1258498485-sup-142@elly")\r
720 +                    (notmuch-test-wait)\r
721 +                    (notmuch-show-stash-message-id)')\r
722 +test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142@elly\""\r
723 +\r
724 +test_begin_subtest "Move to next matching message"\r
725 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
726 +                    (require (quote notmuch-tree))\r
727 +                    (notmuch-tree "from:cworth")\r
728 +                    (notmuch-test-wait)\r
729 +                    (notmuch-tree-next-matching-message)\r
730 +                    (notmuch-show-stash-message-id)')\r
731 +test_expect_equal "$output" "\"Stashed: id:878we4qdqf.fsf@yoom.home.cworth.org\""\r
732 +\r
733 +test_begin_subtest "Move to next thread"\r
734 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
735 +                    (require (quote notmuch-tree))\r
736 +                    (notmuch-tree "tag:inbox")\r
737 +                    (notmuch-test-wait)\r
738 +                    (forward-line 26)\r
739 +                    (notmuch-tree-next-thread)\r
740 +                    (notmuch-show-stash-message-id)')\r
741 +test_expect_equal "$output" "\"Stashed: id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net\""\r
742 +\r
743 +test_begin_subtest "Move to previous thread"\r
744 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
745 +                    (require (quote notmuch-tree))\r
746 +                    (notmuch-tree "tag:inbox")\r
747 +                    (notmuch-test-wait)\r
748 +                    (forward-line 26)\r
749 +                    (notmuch-tree-prev-thread)\r
750 +                    (notmuch-show-stash-message-id)')\r
751 +test_expect_equal "$output" "\"Stashed: id:20091117190054.GU3165@dottiness.seas.harvard.edu\""\r
752 +\r
753 +test_begin_subtest "Move to previous previous thread"\r
754 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
755 +                    (require (quote notmuch-tree))\r
756 +                    (notmuch-tree "tag:inbox")\r
757 +                    (notmuch-test-wait)\r
758 +                    (forward-line 26)\r
759 +                    (notmuch-tree-prev-thread)\r
760 +                    (notmuch-tree-prev-thread)\r
761 +                    (notmuch-show-stash-message-id)')\r
762 +test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\""\r
763 +\r
764 +test_done\r
765 diff --git a/test/notmuch-test b/test/notmuch-test\r
766 index aa28bb0..1db6e90 100755\r
767 --- a/test/notmuch-test\r
768 +++ b/test/notmuch-test\r
769 @@ -62,6 +62,7 @@ TESTS="\r
770    emacs-address-cleaning\r
771    emacs-hello\r
772    emacs-show\r
773 +  emacs-tree\r
774    missing-headers\r
775    hex-escaping\r
776    parse-time-string\r
777 diff --git a/test/tree.expected-output/notmuch-tree-show-window b/test/tree.expected-output/notmuch-tree-show-window\r
778 new file mode 100644\r
779 index 0000000..e16792b\r
780 --- /dev/null\r
781 +++ b/test/tree.expected-output/notmuch-tree-show-window\r
782 @@ -0,0 +1,40 @@\r
783 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
784 +Subject: [notmuch] Working with Maildir storage?\r
785 +To: notmuch@notmuchmail.org\r
786 +Date: Tue, 17 Nov 2009 14:00:54 -0500\r
787 +\r
788 +[ multipart/mixed ]\r
789 +[ multipart/signed ]\r
790 +[ text/plain ]\r
791 +I saw the LWN article and decided to take a look at notmuch.  I'm\r
792 +currently using mutt and mairix to index and read a collection of\r
793 +Maildir mail folders (around 40,000 messages total).\r
794 +\r
795 +notmuch indexed the messages without complaint, but my attempt at\r
796 +searching bombed out. Running, for example:\r
797 +\r
798 +  notmuch search storage\r
799 +\r
800 +Resulted in 4604 lines of errors along the lines of:\r
801 +\r
802 +  Error opening\r
803 +  /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S:\r
804 +  Too many open files\r
805 +\r
806 +I'm curious if this is expected behavior (i.e., notmuch does not work\r
807 +with Maildir) or if something else is going on.\r
808 +\r
809 +Cheers,\r
810 +\r
811 +[ 4-line signature. Click/Enter to show. ]\r
812 +-- \r
813 +Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
814 +Senior Technologist, Computing and Information Technology\r
815 +Harvard University School of Engineering and Applied Sciences\r
816 +[ application/pgp-signature ]\r
817 +[ text/plain ]\r
818 +[ 4-line signature. Click/Enter to show. ]\r
819 +_______________________________________________\r
820 +notmuch mailing list\r
821 +notmuch@notmuchmail.org\r
822 +http://notmuchmail.org/mailman/listinfo/notmuch\r
823 diff --git a/test/tree.expected-output/notmuch-tree-single-thread b/test/tree.expected-output/notmuch-tree-single-thread\r
824 new file mode 100644\r
825 index 0000000..c9e5ef8\r
826 --- /dev/null\r
827 +++ b/test/tree.expected-output/notmuch-tree-single-thread\r
828 @@ -0,0 +1,6 @@\r
829 +  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox)\r
830 +  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
831 +  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
832 +  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
833 +  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
834 +End of search results.\r
835 diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox b/test/tree.expected-output/notmuch-tree-tag-inbox\r
836 new file mode 100644\r
837 index 0000000..484141e\r
838 --- /dev/null\r
839 +++ b/test/tree.expected-output/notmuch-tree-tag-inbox\r
840 @@ -0,0 +1,53 @@\r
841 +  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
842 +  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, unread)\r
843 +  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
844 +  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
845 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
846 +  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
847 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
848 +  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
849 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
850 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
851 +  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
852 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
853 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
854 +  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
855 +  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
856 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
857 +  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
858 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
859 +  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
860 +  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
861 +  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
862 +  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
863 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
864 +  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, unread)\r
865 +  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, unread)\r
866 +  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, unread)\r
867 +  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, unread)\r
868 +  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, unread)\r
869 +  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, unread)\r
870 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
871 +  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
872 +  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
873 +  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
874 +  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
875 +  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
876 +  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
877 +  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
878 +  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
879 +  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
880 +  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
881 +  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
882 +  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
883 +  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
884 +  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
885 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
886 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
887 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
888 +  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
889 +  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
890 +  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
891 +  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
892 +  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
893 +End of search results.\r
894 diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox-tagged b/test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
895 new file mode 100644\r
896 index 0000000..1f75a34\r
897 --- /dev/null\r
898 +++ b/test/tree.expected-output/notmuch-tree-tag-inbox-tagged\r
899 @@ -0,0 +1,53 @@\r
900 +  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
901 +  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, test_tag, unread)\r
902 +  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
903 +  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
904 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
905 +  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
906 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
907 +  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
908 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
909 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
910 +  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
911 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
912 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
913 +  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
914 +  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
915 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
916 +  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
917 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
918 +  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
919 +  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
920 +  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
921 +  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
922 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
923 +  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, unread)\r
924 +  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, unread)\r
925 +  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, unread)\r
926 +  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, unread)\r
927 +  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, unread)\r
928 +  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, unread)\r
929 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
930 +  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
931 +  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
932 +  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
933 +  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
934 +  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
935 +  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
936 +  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
937 +  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
938 +  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
939 +  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
940 +  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
941 +  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
942 +  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
943 +  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
944 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
945 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
946 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
947 +  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
948 +  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
949 +  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
950 +  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
951 +  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
952 +End of search results.\r
953 diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged b/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
954 new file mode 100644\r
955 index 0000000..a7aba6e\r
956 --- /dev/null\r
957 +++ b/test/tree.expected-output/notmuch-tree-tag-inbox-thread-tagged\r
958 @@ -0,0 +1,53 @@\r
959 +  2010-12-29  François Boulogne     ─►[aur-general] Guidelines: cp, mkdir vs install      (inbox, unread)\r
960 +  2010-12-16  Olivier Berger        ─►Essai accentué                                      (inbox, unread)\r
961 +  2009-11-18  Chris Wilson          ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
962 +  2009-11-18  Alex Botero-Lowry     ┬►[notmuch] [PATCH] Error out if no query is supplied to search        instead of going into an infinite loop (attachment, inbox, unread)\r
963 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
964 +  2009-11-17  Ingmar Vanhassel      ┬►[notmuch] [PATCH] Typsos                            (inbox, unread)\r
965 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
966 +  2009-11-17  Adrian Perez de Cast  ┬►[notmuch] Introducing myself                        (inbox, signed, unread)\r
967 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
968 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
969 +  2009-11-17  Israel Herraiz        ┬►[notmuch] New to the list                           (inbox, unread)\r
970 +  2009-11-18  Keith Packard         ├─► ...                                               (inbox, unread)\r
971 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
972 +  2009-11-17  Jan Janak             ┬►[notmuch] What a great idea!                        (inbox, unread)\r
973 +  2009-11-17  Jan Janak             ├─► ...                                               (inbox, unread)\r
974 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
975 +  2009-11-17  Jan Janak             ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
976 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, unread)\r
977 +  2009-11-17  Aron Griffis          ┬►[notmuch] archive                                   (inbox, unread)\r
978 +  2009-11-18  Keith Packard         ╰┬► ...                                               (inbox, unread)\r
979 +  2009-11-18  Carl Worth             ╰─► ...                                              (inbox, unread)\r
980 +  2009-11-17  Keith Packard         ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove    inbox (and unread) tags (inbox, unread)\r
981 +  2009-11-18  Carl Worth            ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
982 +  2009-11-17  Lars Kellogg-Stedman  ┬►[notmuch] Working with Maildir storage?             (inbox, signed, test_thread_tag, unread)\r
983 +  2009-11-17  Mikhail Gusarov       ├┬► ...                                               (inbox, signed, test_thread_tag, unread)\r
984 +  2009-11-17  Lars Kellogg-Stedman  │╰┬► ...                                              (inbox, signed, test_thread_tag, unread)\r
985 +  2009-11-17  Mikhail Gusarov       │ ├─► ...                                             (inbox, test_thread_tag, unread)\r
986 +  2009-11-17  Keith Packard         │ ╰┬► ...                                             (inbox, test_thread_tag, unread)\r
987 +  2009-11-18  Lars Kellogg-Stedman  │  ╰─► ...                                            (inbox, signed, test_thread_tag, unread)\r
988 +  2009-11-18  Carl Worth            ╰─► ...                                               (inbox, test_thread_tag, unread)\r
989 +  2009-11-17  Mikhail Gusarov       ┬►[notmuch] [PATCH 1/2] Close message file after parsing message       headers (inbox, unread)\r
990 +  2009-11-17  Mikhail Gusarov       ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++   file with gcc 4.4 (inbox, unread)\r
991 +  2009-11-17  Carl Worth            ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
992 +  2009-11-17  Keith Packard          ╰┬► ...                                              (inbox, unread)\r
993 +  2009-11-18  Carl Worth              ╰─► ...                                             (inbox, unread)\r
994 +  2009-11-18  Keith Packard         ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that    highlights URLs and uses word-wrap (inbox, unread)\r
995 +  2009-11-18  Alexander Botero-Low  ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
996 +  2009-11-18  Alexander Botero-Low  ─►[notmuch] request for pull                          (inbox, unread)\r
997 +  2009-11-18  Jjgod Jiang           ┬►[notmuch] Mac OS X/Darwin compatibility issues      (inbox, unread)\r
998 +  2009-11-18  Alexander Botero-Low  ╰┬► ...                                               (inbox, unread)\r
999 +  2009-11-18  Jjgod Jiang            ╰┬► ...                                              (inbox, unread)\r
1000 +  2009-11-18  Alexander Botero-Low    ╰─► ...                                             (inbox, unread)\r
1001 +  2009-11-18  Rolland Santimano     ─►[notmuch] Link to mailing list archives ?           (inbox, unread)\r
1002 +  2009-11-18  Jan Janak             ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool       subdirectories into tags (inbox, unread)\r
1003 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] count_files: sort directory in inode order before  statting (inbox, unread)\r
1004 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
1005 +  2009-11-18  Stewart Smith         ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++     libs. (inbox, unread)\r
1006 +  2009-11-18  Lars Kellogg-Stedman  ┬►[notmuch] "notmuch help" outputs to stderr?         (attachment, inbox, signed, unread)\r
1007 +  2009-11-18  Lars Kellogg-Stedman  ╰─► ...                                               (attachment, inbox, signed, unread)\r
1008 +  2009-11-17  Mikhail Gusarov       ─►[notmuch] [PATCH] Handle rename of message file     (inbox, unread)\r
1009 +  2009-11-17  Alex Botero-Lowry     ┬►[notmuch] preliminary FreeBSD support               (attachment, inbox, unread)\r
1010 +  2009-11-17  Carl Worth            ╰─► ...                                               (inbox, unread)\r
1011 +End of search results.\r
1012 -- \r
1013 1.7.9.1\r
1014 \r