[PATCH 11/11] tag signed/encrypted during notmuch new
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 26 May 2011 01:01:20 +0000 (18:01 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:22 +0000 (09:38 -0800)
47/4ac3082674d27ce498b74fba349ca32e068dd7 [new file with mode: 0644]

diff --git a/47/4ac3082674d27ce498b74fba349ca32e068dd7 b/47/4ac3082674d27ce498b74fba349ca32e068dd7
new file mode 100644 (file)
index 0000000..064dd42
--- /dev/null
@@ -0,0 +1,329 @@
+Return-Path: <jrollins@servo.finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 750E8421164\r
+       for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.921\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
+       tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 8ElZ1PsP3-Vx for <notmuch@notmuchmail.org>;\r
+       Wed, 25 May 2011 18:01:42 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id A7DAF429E44\r
+       for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:35 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id AAC833281DB;\r
+       Wed, 25 May 2011 17:55:20 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from servo.finestructure.net (gwave-104.ligo.caltech.edu\r
+       [131.215.114.104]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id 40C863282CF;\r
+       Wed, 25 May 2011 17:55:14 -0700 (PDT)\r
+Received: by servo.finestructure.net (Postfix, from userid 1000)\r
+       id 88CAD7CE; Wed, 25 May 2011 18:01:26 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 11/11] tag signed/encrypted during notmuch new\r
+Date: Wed, 25 May 2011 18:01:20 -0700\r
+Message-Id: <1306371680-19441-12-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.4.4\r
+In-Reply-To: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
+References: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 26 May 2011 01:01:48 -0000\r
+\r
+This patch adds the tag "signed" to messages with any multipart/signed\r
+parts, and the tag "encrypted" to messages with any\r
+multipart/encrypted parts.  This only occurs when messages are indexed\r
+during notmuch new, so a database rebuild is required to have old\r
+messages tagged.\r
+---\r
+ lib/index.cc                                       |    6 ++++++\r
+ test/crypto                                        |   16 ++++++++--------\r
+ .../emacs.expected-output/notmuch-hello-view-inbox |    6 +++---\r
+ .../emacs.expected-output/notmuch-search-tag-inbox |    6 +++---\r
+ .../notmuch-show-thread-maildir-storage            |    8 ++++----\r
+ test/multipart                                     |    4 ++--\r
+ test/search                                        |    6 +++---\r
+ test/search-output                                 |    2 ++\r
+ 8 files changed, 31 insertions(+), 23 deletions(-)\r
+\r
+diff --git a/lib/index.cc b/lib/index.cc\r
+index bdfb8ed..e8e9922 100644\r
+--- a/lib/index.cc\r
++++ b/lib/index.cc\r
+@@ -325,6 +325,12 @@ _index_mime_part (notmuch_message_t *message,\r
+       GMimeMultipart *multipart = GMIME_MULTIPART (part);\r
+       int i;\r
\r
++      if (GMIME_IS_MULTIPART_SIGNED (multipart))\r
++        _notmuch_message_add_term (message, "tag", "signed");\r
++\r
++      if (GMIME_IS_MULTIPART_ENCRYPTED (multipart))\r
++        _notmuch_message_add_term (message, "tag", "encrypted");\r
++\r
+       for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {\r
+           if (GMIME_IS_MULTIPART_SIGNED (multipart)) {\r
+               /* Don't index the signature. */\r
+diff --git a/test/crypto b/test/crypto\r
+index 3b0f381..c5abcc3 100755\r
+--- a/test/crypto\r
++++ b/test/crypto\r
+@@ -46,7 +46,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["inbox","signed"],\r
+  "headers": {"Subject": "test signed message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -76,7 +76,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["inbox","signed"],\r
+  "headers": {"Subject": "test signed message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -106,7 +106,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["inbox","signed"],\r
+  "headers": {"Subject": "test signed message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -141,7 +141,7 @@ output=$(notmuch show --format=text --decrypt subject:"test encrypted message 00\r
+     | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
+ expected='\f\r
+message{ id:XXXXX depth:0 match:1 filename:XXXXX\r
\f\r
+header{\r
+-Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (inbox)\r
++Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (encrypted inbox)\r
+ Subject: test encrypted message 001\r
+ From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
+ To: test_suite@notmuchmail.org\r
+@@ -172,7 +172,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["encrypted","inbox"],\r
+  "headers": {"Subject": "test encrypted message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -223,7 +223,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["encrypted","inbox"],\r
+  "headers": {"Subject": "test encrypted message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -258,7 +258,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["encrypted","inbox"],\r
+  "headers": {"Subject": "test encrypted message 002",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+@@ -309,7 +309,7 @@ expected='[[[{"id": "XXXXX",\r
+  "filename": "YYYYY",\r
+  "timestamp": 946728000,\r
+  "date_relative": "2000-01-01",\r
+- "tags": ["inbox"],\r
++ "tags": ["inbox","signed"],\r
+  "headers": {"Subject": "test signed message 001",\r
+  "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
+  "To": "test_suite@notmuchmail.org",\r
+diff --git a/test/emacs.expected-output/notmuch-hello-view-inbox b/test/emacs.expected-output/notmuch-hello-view-inbox\r
+index 6472c46..894ae5f 100644\r
+--- a/test/emacs.expected-output/notmuch-hello-view-inbox\r
++++ b/test/emacs.expected-output/notmuch-hello-view-inbox\r
+@@ -1,16 +1,16 @@\r
+   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
+-  2009-11-17 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox unread)\r
++  2009-11-17 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox signed unread)\r
+   2009-11-17 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
+   2009-11-17 [1/1]   Mikhail Gusarov      [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
+   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
+   2009-11-17 [2/2]   Jan Janak, Carl Worth        [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
+   2009-11-17 [3/3]   Jan Janak, Carl Worth        [notmuch] What a great idea! (inbox unread)\r
+   2009-11-17 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (inbox unread)\r
+-  2009-11-17 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox unread)\r
++  2009-11-17 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox signed unread)\r
+   2009-11-17 [3/3]   Aron Griffis, Keith Packard, Carl Worth     [notmuch] archive (inbox unread)\r
+   2009-11-17 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox unread)\r
+   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
+-  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox unread)\r
++  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread)\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
+diff --git a/test/emacs.expected-output/notmuch-search-tag-inbox b/test/emacs.expected-output/notmuch-search-tag-inbox\r
+index 2168159..9456ccf 100644\r
+--- a/test/emacs.expected-output/notmuch-search-tag-inbox\r
++++ b/test/emacs.expected-output/notmuch-search-tag-inbox\r
+@@ -1,13 +1,13 @@\r
+   2009-11-18 [1/1]   Chris Wilson         [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
+   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
+   2009-11-18 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox unread)\r
+-  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox unread)\r
++  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (inbox signed unread)\r
+   2009-11-18 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (inbox unread)\r
+   2009-11-18 [3/3]   Jan Janak, Carl Worth        [notmuch] What a great idea! (inbox unread)\r
+   2009-11-18 [2/2]   Jan Janak, Carl Worth        [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
+   2009-11-18 [3/3]   Aron Griffis, Keith Packard, Carl Worth     [notmuch] archive (inbox unread)\r
+   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
+-  2009-11-18 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox unread)\r
++  2009-11-18 [7/7]   Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth  [notmuch] Working with Maildir storage? (inbox signed unread)\r
+   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
+   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
+   2009-11-18 [1/1]   Alexander Botero-Lowry  [notmuch] request for pull (inbox unread)\r
+@@ -17,7 +17,7 @@\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
+   2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
+-  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox unread)\r
++  2009-11-18 [2/2]   Lars Kellogg-Stedman [notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread)\r
+   2009-11-17 [1/1]   Mikhail Gusarov      [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
+   2009-11-17 [2/2]   Alex Botero-Lowry, Carl Worth  [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
+ End of search results.\r
+diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage b/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
+index 034d3d4..241b5b7 100644\r
+--- a/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
++++ b/test/emacs.expected-output/notmuch-show-thread-maildir-storage\r
+@@ -1,4 +1,4 @@\r
+-Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox)\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed)\r
+ Subject: [notmuch] Working with Maildir storage?\r
+ To: notmuch@notmuchmail.org\r
+ Date: Tue, 17 Nov 2009 14:00:54 -0500\r
+@@ -39,7 +39,7 @@ _______________________________________________\r
+ notmuch mailing list\r
+ notmuch@notmuchmail.org\r
+ http://notmuchmail.org/mailman/listinfo/notmuch\r
+- Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox unread)\r
++ Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox signed unread)\r
+  Subject: Re: [notmuch] Working with Maildir storage?\r
+  To: notmuch@notmuchmail.org\r
+  Date: Wed, 18 Nov 2009 01:02:38 +0600\r
+@@ -68,7 +68,7 @@ http://notmuchmail.org/mailman/listinfo/notmuch\r
+  notmuch mailing list\r
+  notmuch@notmuchmail.org\r
+  http://notmuchmail.org/mailman/listinfo/notmuch\r
+-  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox unread)\r
++  Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-17) (inbox signed unread)\r
+   Subject: Re: [notmuch] Working with Maildir storage?\r
+   To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
+   Cc: notmuch@notmuchmail.org\r
+@@ -151,7 +151,7 @@ http://notmuchmail.org/mailman/listinfo/notmuch\r
\r
+    -keith\r
\r
+-    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox unread)\r
++    Lars Kellogg-Stedman <lars@seas.harvard.edu> (2009-11-18) (inbox signed unread)\r
+     Subject: Re: [notmuch] Working with Maildir storage?\r
+     To: Keith Packard <keithp@keithp.com>\r
+     Cc: notmuch@notmuchmail.org\r
+diff --git a/test/multipart b/test/multipart\r
+index 80da0b4..d712853 100755\r
+--- a/test/multipart\r
++++ b/test/multipart\r
+@@ -63,7 +63,7 @@ output=$(notmuch show --format=text --part=0 'id:87liy5ap00.fsf@yoom.home.cworth\r
+ test_expect_equal "$output" \\r
+ "\f\r
+message{ id:87liy5ap00.fsf@yoom.home.cworth.org depth:0 match:1 filename:${MAIL_DIR}/multipart\r
\f\r
+header{\r
+-Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox unread)\r
++Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox signed unread)\r
+ Subject: Multipart message\r
+ From: Carl Worth <cworth@cworth.org>\r
+ To: cworth@cworth.org\r
+@@ -186,7 +186,7 @@ test_expect_success \\r
+ test_begin_subtest "--format=json --part=0, full message"\r
+ output=$(notmuch show --format=json --part=0 'id:87liy5ap00.fsf@yoom.home.cworth.org')\r
+ test_expect_equal "$output" \\r
+-'{"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
++'{"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
\r
+ test_begin_subtest "--format=json --part=1, message body"\r
+ output=$(notmuch show --format=json --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org')\r
+diff --git a/test/search b/test/search\r
+index b180c7f..d2579df 100755\r
+--- a/test/search\r
++++ b/test/search\r
+@@ -78,13 +78,13 @@ output=$(notmuch search '*' | notmuch_search_sanitize)\r
+ 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
+ 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
+ thread:XXX   2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)\r
+-thread:XXX   2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth; [notmuch] Introducing myself (inbox unread)\r
++thread:XXX   2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth; [notmuch] Introducing myself (inbox signed unread)\r
+ thread:XXX   2009-11-18 [3/3] Israel Herraiz, Keith Packard, Carl Worth; [notmuch] New to the list (inbox unread)\r
+ thread:XXX   2009-11-18 [3/3] Jan Janak, Carl Worth; [notmuch] What a great idea! (inbox unread)\r
+ thread:XXX   2009-11-18 [2/2] Jan Janak, Carl Worth; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
+ thread:XXX   2009-11-18 [3/3] Aron Griffis, Keith Packard, Carl Worth; [notmuch] archive (inbox unread)\r
+ 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
+-thread:XXX   2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox unread)\r
++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
+ 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
+ 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
+ thread:XXX   2009-11-18 [1/1] Alexander Botero-Lowry; [notmuch] request for pull (inbox unread)\r
+@@ -94,7 +94,7 @@ thread:XXX   2009-11-18 [1/1] Jan Janak; [notmuch] [PATCH] notmuch new: Support\r
+ thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
+ thread:XXX   2009-11-18 [1/1] Stewart Smith; [notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
+ 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
+-thread:XXX   2009-11-18 [2/2] Lars Kellogg-Stedman; [notmuch] \"notmuch help\" outputs to stderr? (attachment inbox unread)\r
++thread:XXX   2009-11-18 [2/2] Lars Kellogg-Stedman; [notmuch] \"notmuch help\" outputs to stderr? (attachment inbox signed unread)\r
+ thread:XXX   2009-11-17 [1/1] Mikhail Gusarov; [notmuch] [PATCH] Handle rename of message file (inbox unread)\r
+ thread:XXX   2009-11-17 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] preliminary FreeBSD support (attachment inbox unread)\r
+ thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
+diff --git a/test/search-output b/test/search-output\r
+index b414993..55dbc81 100755\r
+--- a/test/search-output\r
++++ b/test/search-output\r
+@@ -270,12 +270,14 @@ test_begin_subtest "notmuch search --output=tags"\r
+ output=$(notmuch search --output=tags '*')\r
+ test_expect_equal "$output" "attachment\r
+ inbox\r
++signed\r
+ unread"\r
\r
+ test_begin_subtest "notmuch search --format=json --output=tags"\r
+ output=$(notmuch search --format=json --output=tags '*')\r
+ test_expect_equal "$output" '["attachment",\r
+ "inbox",\r
++"signed",\r
+ "unread"]'\r
\r
+ test_done\r
+-- \r
+1.7.4.4\r
+\r