Re: Batch tagging - add id_list as tag possible?
[notmuch-archives.git] / 47 / 4ac3082674d27ce498b74fba349ca32e068dd7
1 Return-Path: <jrollins@servo.finestructure.net>\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 750E8421164\r
6         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:47 -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.921\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\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 8ElZ1PsP3-Vx for <notmuch@notmuchmail.org>;\r
17         Wed, 25 May 2011 18:01:42 -0700 (PDT)\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
19         [131.215.239.19])\r
20         by olra.theworths.org (Postfix) with ESMTP id A7DAF429E44\r
21         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:35 -0700 (PDT)\r
22 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
23         by fire-doxen-postvirus (Postfix) with ESMTP id AAC833281DB;\r
24         Wed, 25 May 2011 17:55:20 -0700 (PDT)\r
25 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
26 Received: from servo.finestructure.net (gwave-104.ligo.caltech.edu\r
27         [131.215.114.104]) (Authenticated sender: jrollins)\r
28         by fire-doxen-submit (Postfix) with ESMTP id 40C863282CF;\r
29         Wed, 25 May 2011 17:55:14 -0700 (PDT)\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
31         id 88CAD7CE; Wed, 25 May 2011 18:01:26 -0700 (PDT)\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH 11/11] tag signed/encrypted during notmuch new\r
35 Date: Wed, 25 May 2011 18:01:20 -0700\r
36 Message-Id: <1306371680-19441-12-git-send-email-jrollins@finestructure.net>\r
37 X-Mailer: git-send-email 1.7.4.4\r
38 In-Reply-To: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
39 References: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 26 May 2011 01:01:48 -0000\r
53 \r
54 This patch adds the tag "signed" to messages with any multipart/signed\r
55 parts, and the tag "encrypted" to messages with any\r
56 multipart/encrypted parts.  This only occurs when messages are indexed\r
57 during notmuch new, so a database rebuild is required to have old\r
58 messages tagged.\r
59 ---\r
60  lib/index.cc                                       |    6 ++++++\r
61  test/crypto                                        |   16 ++++++++--------\r
62  .../emacs.expected-output/notmuch-hello-view-inbox |    6 +++---\r
63  .../emacs.expected-output/notmuch-search-tag-inbox |    6 +++---\r
64  .../notmuch-show-thread-maildir-storage            |    8 ++++----\r
65  test/multipart                                     |    4 ++--\r
66  test/search                                        |    6 +++---\r
67  test/search-output                                 |    2 ++\r
68  8 files changed, 31 insertions(+), 23 deletions(-)\r
69 \r
70 diff --git a/lib/index.cc b/lib/index.cc\r
71 index bdfb8ed..e8e9922 100644\r
72 --- a/lib/index.cc\r
73 +++ b/lib/index.cc\r
74 @@ -325,6 +325,12 @@ _index_mime_part (notmuch_message_t *message,\r
75         GMimeMultipart *multipart = GMIME_MULTIPART (part);\r
76         int i;\r
77  \r
78 +       if (GMIME_IS_MULTIPART_SIGNED (multipart))\r
79 +         _notmuch_message_add_term (message, "tag", "signed");\r
80 +\r
81 +       if (GMIME_IS_MULTIPART_ENCRYPTED (multipart))\r
82 +         _notmuch_message_add_term (message, "tag", "encrypted");\r
83 +\r
84         for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {\r
85             if (GMIME_IS_MULTIPART_SIGNED (multipart)) {\r
86                 /* Don't index the signature. */\r
87 diff --git a/test/crypto b/test/crypto\r
88 index 3b0f381..c5abcc3 100755\r
89 --- a/test/crypto\r
90 +++ b/test/crypto\r
91 @@ -46,7 +46,7 @@ expected='[[[{"id": "XXXXX",\r
92   "filename": "YYYYY",\r
93   "timestamp": 946728000,\r
94   "date_relative": "2000-01-01",\r
95 - "tags": ["inbox"],\r
96 + "tags": ["inbox","signed"],\r
97   "headers": {"Subject": "test signed message 001",\r
98   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
99   "To": "test_suite@notmuchmail.org",\r
100 @@ -76,7 +76,7 @@ expected='[[[{"id": "XXXXX",\r
101   "filename": "YYYYY",\r
102   "timestamp": 946728000,\r
103   "date_relative": "2000-01-01",\r
104 - "tags": ["inbox"],\r
105 + "tags": ["inbox","signed"],\r
106   "headers": {"Subject": "test signed message 001",\r
107   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
108   "To": "test_suite@notmuchmail.org",\r
109 @@ -106,7 +106,7 @@ expected='[[[{"id": "XXXXX",\r
110   "filename": "YYYYY",\r
111   "timestamp": 946728000,\r
112   "date_relative": "2000-01-01",\r
113 - "tags": ["inbox"],\r
114 + "tags": ["inbox","signed"],\r
115   "headers": {"Subject": "test signed message 001",\r
116   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
117   "To": "test_suite@notmuchmail.org",\r
118 @@ -141,7 +141,7 @@ output=$(notmuch show --format=text --decrypt subject:"test encrypted message 00\r
119      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
120  expected='\f\r
121 message{ id:XXXXX depth:0 match:1 filename:XXXXX\r
122  \f\r
123 header{\r
124 -Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (inbox)\r
125 +Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (encrypted inbox)\r
126  Subject: test encrypted message 001\r
127  From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
128  To: test_suite@notmuchmail.org\r
129 @@ -172,7 +172,7 @@ expected='[[[{"id": "XXXXX",\r
130   "filename": "YYYYY",\r
131   "timestamp": 946728000,\r
132   "date_relative": "2000-01-01",\r
133 - "tags": ["inbox"],\r
134 + "tags": ["encrypted","inbox"],\r
135   "headers": {"Subject": "test encrypted message 001",\r
136   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
137   "To": "test_suite@notmuchmail.org",\r
138 @@ -223,7 +223,7 @@ expected='[[[{"id": "XXXXX",\r
139   "filename": "YYYYY",\r
140   "timestamp": 946728000,\r
141   "date_relative": "2000-01-01",\r
142 - "tags": ["inbox"],\r
143 + "tags": ["encrypted","inbox"],\r
144   "headers": {"Subject": "test encrypted message 001",\r
145   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
146   "To": "test_suite@notmuchmail.org",\r
147 @@ -258,7 +258,7 @@ expected='[[[{"id": "XXXXX",\r
148   "filename": "YYYYY",\r
149   "timestamp": 946728000,\r
150   "date_relative": "2000-01-01",\r
151 - "tags": ["inbox"],\r
152 + "tags": ["encrypted","inbox"],\r
153   "headers": {"Subject": "test encrypted message 002",\r
154   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
155   "To": "test_suite@notmuchmail.org",\r
156 @@ -309,7 +309,7 @@ expected='[[[{"id": "XXXXX",\r
157   "filename": "YYYYY",\r
158   "timestamp": 946728000,\r
159   "date_relative": "2000-01-01",\r
160 - "tags": ["inbox"],\r
161 + "tags": ["inbox","signed"],\r
162   "headers": {"Subject": "test signed message 001",\r
163   "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
164   "To": "test_suite@notmuchmail.org",\r
165 diff --git a/test/emacs.expected-output/notmuch-hello-view-inbox b/test/emacs.expected-output/notmuch-hello-view-inbox\r
166 index 6472c46..894ae5f 100644\r
167 --- a/test/emacs.expected-output/notmuch-hello-view-inbox\r
168 +++ b/test/emacs.expected-output/notmuch-hello-view-inbox\r
169 @@ -1,16 +1,16 @@\r
170    2009-11-17 [5/5]   Mikhail Gusarov, Carl Worth, Keith Packard  [notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
171 -  2009-11-17 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox unread)\r
172 +  2009-11-17 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox signed unread)\r
173    2009-11-17 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
174    2009-11-17 [1/1]   Mikhail Gusarov      [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
175    2009-11-17 [2/2]   Keith Packard, Carl Worth    [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
176    2009-11-17 [2/2]   Jan Janak, Carl Worth        [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
177    2009-11-17 [3/3]   Jan Janak, Carl Worth        [notmuch] What a great idea! (inbox unread)\r
178    2009-11-17 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (inbox unread)\r
179 -  2009-11-17 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox unread)\r
180 +  2009-11-17 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox signed unread)\r
181    2009-11-17 [3/3]   Aron Griffis, Keith Packard, Carl Worth     [notmuch] archive (inbox unread)\r
182    2009-11-17 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox unread)\r
183    2009-11-18 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
184 -  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox unread)\r
185 +  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread)\r
186    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
187    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
188    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
189 diff --git a/test/emacs.expected-output/notmuch-search-tag-inbox b/test/emacs.expected-output/notmuch-search-tag-inbox\r
190 index 2168159..9456ccf 100644\r
191 --- a/test/emacs.expected-output/notmuch-search-tag-inbox\r
192 +++ b/test/emacs.expected-output/notmuch-search-tag-inbox\r
193 @@ -1,13 +1,13 @@\r
194    2009-11-18 [1/1]   Chris Wilson         [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
195    2009-11-18 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
196    2009-11-18 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox unread)\r
197 -  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox unread)\r
198 +  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox signed unread)\r
199    2009-11-18 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (inbox unread)\r
200    2009-11-18 [3/3]   Jan Janak, Carl Worth        [notmuch] What a great idea! (inbox unread)\r
201    2009-11-18 [2/2]   Jan Janak, Carl Worth        [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
202    2009-11-18 [3/3]   Aron Griffis, Keith Packard, Carl Worth     [notmuch] archive (inbox unread)\r
203    2009-11-18 [2/2]   Keith Packard, Carl Worth    [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
204 -  2009-11-18 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox unread)\r
205 +  2009-11-18 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox signed unread)\r
206    2009-11-18 [5/5]   Mikhail Gusarov, Carl Worth, Keith Packard  [notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
207    2009-11-18 [2/2]   Keith Packard, Alexander Botero-Lowry    [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
208    2009-11-18 [1/1]   Alexander Botero-Lowry  [notmuch] request for pull (inbox unread)\r
209 @@ -17,7 +17,7 @@\r
210    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
211    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
212    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
213 -  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox unread)\r
214 +  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread)\r
215    2009-11-17 [1/1]   Mikhail Gusarov      [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
216    2009-11-17 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
217  End of search results.\r
218 diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage b/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
219 index 034d3d4..241b5b7 100644\r
220 --- a/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
221 +++ b/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
222 @@ -1,4 +1,4 @@\r
223 -Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox)\r
224 +Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
225  Subject: [notmuch] Working with Maildir storage?\r
226  To: notmuch@notmuchmail.org\r
227  Date: Tue, 17 Nov 2009 14:00:54 -0500\r
228 @@ -39,7 +39,7 @@ _______________________________________________\r
229  notmuch mailing list\r
230  notmuch@notmuchmail.org\r
231  http://notmuchmail.org/mailman/listinfo/notmuch\r
232 - Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
233 + Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
234   Subject: Re: [notmuch] Working with Maildir storage?\r
235   To: notmuch@notmuchmail.org\r
236   Date: Wed, 18 Nov 2009 01:02:38 +0600\r
237 @@ -68,7 +68,7 @@ http://notmuchmail.org/mailman/listinfo/notmuch\r
238   notmuch mailing list\r
239   notmuch@notmuchmail.org\r
240   http://notmuchmail.org/mailman/listinfo/notmuch\r
241 -  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox unread)\r
242 +  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)\r
243    Subject: Re: [notmuch] Working with Maildir storage?\r
244    To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
245    Cc: notmuch@notmuchmail.org\r
246 @@ -151,7 +151,7 @@ http://notmuchmail.org/mailman/listinfo/notmuch\r
247  \r
248     -keith\r
249  \r
250 -    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox unread)\r
251 +    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
252      Subject: Re: [notmuch] Working with Maildir storage?\r
253      To: Keith Packard <keithp@keithp.com>\r
254      Cc: notmuch@notmuchmail.org\r
255 diff --git a/test/multipart b/test/multipart\r
256 index 80da0b4..d712853 100755\r
257 --- a/test/multipart\r
258 +++ b/test/multipart\r
259 @@ -63,7 +63,7 @@ output=$(notmuch show --format=text --part=0 'id:87liy5ap00.fsf@yoom.home.cworth\r
260  test_expect_equal "$output" \\r
261  "\f\r
262 message{ id:87liy5ap00.fsf@yoom.home.cworth.org depth:0 match:1 filename:${MAIL_DIR}/multipart\r
263  \f\r
264 header{\r
265 -Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox unread)\r
266 +Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox signed unread)\r
267  Subject: Multipart message\r
268  From: Carl Worth <cworth@cworth.org>\r
269  To: cworth@cworth.org\r
270 @@ -186,7 +186,7 @@ test_expect_success \\r
271  test_begin_subtest "--format=json --part=0, full message"\r
272  output=$(notmuch show --format=json --part=0 'id:87liy5ap00.fsf@yoom.home.cworth.org')\r
273  test_expect_equal "$output" \\r
274 -'{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "filename": "'"${MAIL_DIR}/multipart"'", "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Cc": "", "Bcc": "", "Date": "Tue, 05 Jan 2001 15:43:57 -0000"}, "body": [{"id": 1, "content-type": "multipart/signed", "content": [{"id": 2, "content-type": "multipart/mixed", "content": [{"id": 3, "content-type": "message/rfc822", "content": [{"id": 4, "content-type": "text/html"}]}, {"id": 5, "content-type": "text/plain", "filename": "attachment", "content": "This is a text attachment.\n"}, {"id": 6, "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}]}, {"id": 7, "content-type": "application/pgp-signature"}]}]}'\r
275 +'{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "filename": "'"${MAIL_DIR}/multipart"'", "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","signed","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Cc": "", "Bcc": "", "Date": "Tue, 05 Jan 2001 15:43:57 -0000"}, "body": [{"id": 1, "content-type": "multipart/signed", "content": [{"id": 2, "content-type": "multipart/mixed", "content": [{"id": 3, "content-type": "message/rfc822", "content": [{"id": 4, "content-type": "text/html"}]}, {"id": 5, "content-type": "text/plain", "filename": "attachment", "content": "This is a text attachment.\n"}, {"id": 6, "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}]}, {"id": 7, "content-type": "application/pgp-signature"}]}]}'\r
276  \r
277  test_begin_subtest "--format=json --part=1, message body"\r
278  output=$(notmuch show --format=json --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org')\r
279 diff --git a/test/search b/test/search\r
280 index b180c7f..d2579df 100755\r
281 --- a/test/search\r
282 +++ b/test/search\r
283 @@ -78,13 +78,13 @@ output=$(notmuch search '*' | notmuch_search_sanitize)\r
284  test_expect_equal "$output" "thread:XXX   2009-11-18 [1/1] Chris Wilson; [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
285  thread:XXX   2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
286  thread:XXX   2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)\r
287 -thread:XXX   2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth; [notmuch] Introducing myself (inbox unread)\r
288 +thread:XXX   2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth; [notmuch] Introducing myself (inbox signed unread)\r
289  thread:XXX   2009-11-18 [3/3] Israel Herraiz, Keith Packard, Carl Worth; [notmuch] New to the list (inbox unread)\r
290  thread:XXX   2009-11-18 [3/3] Jan Janak, Carl Worth; [notmuch] What a great idea! (inbox unread)\r
291  thread:XXX   2009-11-18 [2/2] Jan Janak, Carl Worth; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
292  thread:XXX   2009-11-18 [3/3] Aron Griffis, Keith Packard, Carl Worth; [notmuch] archive (inbox unread)\r
293  thread:XXX   2009-11-18 [2/2] Keith Packard, Carl Worth; [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
294 -thread:XXX   2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox unread)\r
295 +thread:XXX   2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)\r
296  thread:XXX   2009-11-18 [5/5] Mikhail Gusarov, Carl Worth, Keith Packard; [notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
297  thread:XXX   2009-11-18 [2/2] Keith Packard, Alexander Botero-Lowry; [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
298  thread:XXX   2009-11-18 [1/1] Alexander Botero-Lowry; [notmuch] request for pull (inbox unread)\r
299 @@ -94,7 +94,7 @@ thread:XXX   2009-11-18 [1/1] Jan Janak; [notmuch] [PATCH] notmuch new: Support\r
300  thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
301  thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
302  thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
303 -thread:XXX   2009-11-18 [2/2] Lars Kellogg-Stedman; [notmuch] \"notmuch help\" outputs to stderr? (attachment inbox unread)\r
304 +thread:XXX   2009-11-18 [2/2] Lars Kellogg-Stedman; [notmuch] \"notmuch help\" outputs to stderr? (attachment inbox signed unread)\r
305  thread:XXX   2009-11-17 [1/1] Mikhail Gusarov; [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
306  thread:XXX   2009-11-17 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
307  thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
308 diff --git a/test/search-output b/test/search-output\r
309 index b414993..55dbc81 100755\r
310 --- a/test/search-output\r
311 +++ b/test/search-output\r
312 @@ -270,12 +270,14 @@ test_begin_subtest "notmuch search --output=tags"\r
313  output=$(notmuch search --output=tags '*')\r
314  test_expect_equal "$output" "attachment\r
315  inbox\r
316 +signed\r
317  unread"\r
318  \r
319  test_begin_subtest "notmuch search --format=json --output=tags"\r
320  output=$(notmuch search --format=json --output=tags '*')\r
321  test_expect_equal "$output" '["attachment",\r
322  "inbox",\r
323 +"signed",\r
324  "unread"]'\r
325  \r
326  test_done\r
327 -- \r
328 1.7.4.4\r
329 \r