Re: [PATCH] doc: Allow rst2man.py as an alternative to rst2man
[notmuch-archives.git] / 39 / 7a86cdde142236ee98c0a5ca9c5ca38b0496c8
1 Return-Path: <amdragon@mit.edu>\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 614B841638B\r
6         for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 15:47:15 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-0.7]\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 H82eo9tcoFLG for <notmuch@notmuchmail.org>;\r
17         Fri, 24 Feb 2012 15:47:13 -0800 (PST)\r
18 Received: from dmz-mailsec-scanner-5.mit.edu (DMZ-MAILSEC-SCANNER-5.MIT.EDU\r
19         [18.7.68.34])\r
20         by olra.theworths.org (Postfix) with ESMTP id 4A390415CDF\r
21         for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 15:47:13 -0800 (PST)\r
22 X-AuditID: 12074422-b7fd66d0000008f9-5d-4f48218096d8\r
23 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
24         by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
25         id EA.09.02297.081284F4; Fri, 24 Feb 2012 18:47:12 -0500 (EST)\r
26 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
27         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q1ONlCr1006670; \r
28         Fri, 24 Feb 2012 18:47:12 -0500\r
29 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
30         (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q1ONlAK2026749\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Fri, 24 Feb 2012 18:47:11 -0500 (EST)\r
35 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
36         (envelope-from <amdragon@mit.edu>)\r
37         id 1S14r0-0000is-HZ; Fri, 24 Feb 2012 18:47:10 -0500\r
38 Date: Fri, 24 Feb 2012 18:47:10 -0500\r
39 From: Austin Clements <amdragon@MIT.EDU>\r
40 To: Mark Walters <markwalters1009@gmail.com>\r
41 Subject: Re: [RFC PATCH v5 09/11] test: update tests to reflect the exclude\r
42         flag\r
43 Message-ID: <20120224234710.GI30513@mit.edu>\r
44 References: <1329296619-7463-1-git-send-email-markwalters1009@gmail.com>\r
45         <1329296619-7463-10-git-send-email-markwalters1009@gmail.com>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=iso-8859-1\r
48 Content-Disposition: inline\r
49 Content-Transfer-Encoding: 8bit\r
50 In-Reply-To: <1329296619-7463-10-git-send-email-markwalters1009@gmail.com>\r
51 User-Agent: Mutt/1.5.21 (2010-09-15)\r
52 X-Brightmail-Tracker:\r
53  H4sIAAAAAAAAA+NgFlrGKsWRmVeSWpSXmKPExsUixG6nrtug6OFv8LbPwGL1XB6L6zdnMjsw\r
54         eeycdZfd49mqW8wBTFFcNimpOZllqUX6dglcGVt6VzAXzGllrNj0xb2BcX9RFyMHh4SAicSq\r
55         3T5djJxAppjEhXvr2boYuTiEBPYxSjTOfw3lbGCU2Pu7nRXCOckksW/nKihnCaPEuyc7WEH6\r
56         WQRUJeb3n2YGsdkENCS27V/OCGKLCOhI3D60gB3EZhaQlvj2u5kJxBYWCJI4eO8uK8gZvEA1\r
57         K25XQszsYJTY+uccC0gNr4CgxMmZT1ggenUkdm69wwZSDzJn+T8OiLC8RPPW2WBrOQW8JP5t\r
58         vQA2XlRARWLKyW1sExiFZyGZNAvJpFkIk2YhmbSAkWUVo2xKbpVubmJmTnFqsm5xcmJeXmqR\r
59         rqlebmaJXmpK6SZGcBS4KO1g/HlQ6RCjAAejEg8v0xZ3fyHWxLLiytxDjJIcTEqivOayHv5C\r
60         fEn5KZUZicUZ8UWlOanFhxglOJiVRHjt2IByvCmJlVWpRfkwKWkOFiVxXnWtd35CAumJJanZ\r
61         qakFqUUwWRkODiUJ3tMKQI2CRanpqRVpmTklCGkmDk6Q4TxAwx+C1PAWFyTmFmemQ+RPMepy\r
62         rF28+SKjEEtefl6qlDjvY5AiAZCijNI8uDmw5PWKURzoLWHeFyBVPMDEBzfpFdASJqAl9n9d\r
63         QZaUJCKkpBoY7TlVjx68FsjxKiX47YlXlenn7525KvV1tv+Fz5MYxcNEPXqF3BamtZ48f2vT\r
64         Nw37iLZPr99OiZdiOj4tyvXRyjA2cYMY5k9SUkrlRVVJF+50HujM07yucrngWrX7JFHbo/KH\r
65         /Iw7oh7JLjP/LLVbYFnzRpdZcUfu7T2gUbpP0pnV7/b7i3LzlFiKMxINtZiLihMBPiDQrTkD        AAA=\r
66 Cc: notmuch@notmuchmail.org\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.13\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71         <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
78         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Fri, 24 Feb 2012 23:47:15 -0000\r
80 \r
81 Did you mean to put this one right after the show format update,\r
82 rather than having the man update between the two?  (I would argue\r
83 that this should go in the same patch as the show format update so\r
84 that the tests never fail, but people seem to disagree about this.)\r
85 \r
86 Quoth Mark Walters on Feb 15 at  9:03 am:\r
87 > notmuch show outputs the exclude flag so many tests using notmuch\r
88 > show failed. This commit adds "excluded:0" or "excluded: false" to\r
89 > the expected outputs. After this commit there should be no failing\r
90 > tests.\r
91 > ---\r
92 >  test/crypto        |    9 ++++++++-\r
93 >  test/encoding      |    2 +-\r
94 >  test/json          |    6 +++---\r
95 >  test/maildir-sync  |    1 +\r
96 >  test/multipart     |    4 ++--\r
97 >  test/thread-naming |   16 ++++++++--------\r
98 >  6 files changed, 23 insertions(+), 15 deletions(-)\r
99\r
100 > diff --git a/test/crypto b/test/crypto\r
101 > index 1dbb60a..564cf9a 100755\r
102 > --- a/test/crypto\r
103 > +++ b/test/crypto\r
104 > @@ -43,6 +43,7 @@ output=$(notmuch show --format=json --verify subject:"test signed message 001" \\r
105 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
106 >  expected='[[[{"id": "XXXXX",\r
107 >   "match": true,\r
108 > + "excluded": false,\r
109 >   "filename": "YYYYY",\r
110 >   "timestamp": 946728000,\r
111 >   "date_relative": "2000-01-01",\r
112 > @@ -77,6 +78,7 @@ output=$(notmuch show --format=json --verify subject:"test signed message 001" \\r
113 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
114 >  expected='[[[{"id": "XXXXX",\r
115 >   "match": true,\r
116 > + "excluded": false,\r
117 >   "filename": "YYYYY",\r
118 >   "timestamp": 946728000,\r
119 >   "date_relative": "2000-01-01",\r
120 > @@ -113,6 +115,7 @@ output=$(notmuch show --format=json --verify subject:"test signed message 001" \\r
121 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
122 >  expected='[[[{"id": "XXXXX",\r
123 >   "match": true,\r
124 > + "excluded": false,\r
125 >   "filename": "YYYYY",\r
126 >   "timestamp": 946728000,\r
127 >   "date_relative": "2000-01-01",\r
128 > @@ -153,7 +156,7 @@ test_begin_subtest "decryption, --format=text"\r
129 >  output=$(notmuch show --format=text --decrypt subject:"test encrypted message 001" \\r
130 >      | notmuch_show_sanitize_all \\r
131 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
132 > -expected='\f\r
133 message{ id:XXXXX depth:0 match:1 filename:XXXXX\r
134 > +expected='\f\r
135 message{ id:XXXXX depth:0 match:1 excluded:0 filename:XXXXX\r
136 >  \f\r
137 header{\r
138 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (encrypted inbox)\r
139 >  Subject: test encrypted message 001\r
140 > @@ -187,6 +190,7 @@ output=$(notmuch show --format=json --decrypt subject:"test encrypted message 00\r
141 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
142 >  expected='[[[{"id": "XXXXX",\r
143 >   "match": true,\r
144 > + "excluded": false,\r
145 >   "filename": "YYYYY",\r
146 >   "timestamp": 946728000,\r
147 >   "date_relative": "2000-01-01",\r
148 > @@ -242,6 +246,7 @@ output=$(notmuch show --format=json --decrypt subject:"test encrypted message 00\r
149 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
150 >  expected='[[[{"id": "XXXXX",\r
151 >   "match": true,\r
152 > + "excluded": false,\r
153 >   "filename": "YYYYY",\r
154 >   "timestamp": 946728000,\r
155 >   "date_relative": "2000-01-01",\r
156 > @@ -277,6 +282,7 @@ output=$(notmuch show --format=json --decrypt subject:"test encrypted message 00\r
157 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
158 >  expected='[[[{"id": "XXXXX",\r
159 >   "match": true,\r
160 > + "excluded": false,\r
161 >   "filename": "YYYYY",\r
162 >   "timestamp": 946728000,\r
163 >   "date_relative": "2000-01-01",\r
164 > @@ -332,6 +338,7 @@ output=$(notmuch show --format=json --verify subject:"test signed message 001" \\r
165 >      | sed -e 's|"created": [1234567890]*|"created": 946728000|')\r
166 >  expected='[[[{"id": "XXXXX",\r
167 >   "match": true,\r
168 > + "excluded": false,\r
169 >   "filename": "YYYYY",\r
170 >   "timestamp": 946728000,\r
171 >   "date_relative": "2000-01-01",\r
172 > diff --git a/test/encoding b/test/encoding\r
173 > index 33259c1..a872345 100755\r
174 > --- a/test/encoding\r
175 > +++ b/test/encoding\r
176 > @@ -6,7 +6,7 @@ test_begin_subtest "Message with text of unknown charset"\r
177 >  add_message '[content-type]="text/plain; charset=unknown-8bit"' \\r
178 >           "[body]=irrelevant"\r
179 >  output=$(notmuch show id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
180 > -test_expect_equal "$output" "\f\r
181 message{ id:msg-001@notmuch-test-suite depth:0 match:1 filename:/XXX/mail/msg-001\r
182 > +test_expect_equal "$output" "\f\r
183 message{ id:msg-001@notmuch-test-suite depth:0 match:1 excluded:0 filename:/XXX/mail/msg-001\r
184 >  \f\r
185 header{\r
186 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox unread)\r
187 >  Subject: Test message #1\r
188 > diff --git a/test/json b/test/json\r
189 > index 7df4380..f95fcf8 100755\r
190 > --- a/test/json\r
191 > +++ b/test/json\r
192 > @@ -5,7 +5,7 @@ test_description="--format=json output"\r
193 >  test_begin_subtest "Show message: json"\r
194 >  add_message "[subject]=\"json-show-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[body]=\"json-show-message\""\r
195 >  output=$(notmuch show --format=json "json-show-message")\r
196 > -test_expect_equal "$output" "[[[{\"id\": \"${gen_msg_id}\", \"match\": true, \"filename\": \"${gen_msg_filename}\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\",\"unread\"], \"headers\": {\"Subject\": \"json-show-subject\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"Sat, 01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"text/plain\", \"content\": \"json-show-message\n\"}]}, []]]]"\r
197 > +test_expect_equal "$output" "[[[{\"id\": \"${gen_msg_id}\", \"match\": true, \"excluded\": false, \"filename\": \"${gen_msg_filename}\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\",\"unread\"], \"headers\": {\"Subject\": \"json-show-subject\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"Sat, 01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"text/plain\", \"content\": \"json-show-message\n\"}]}, []]]]"\r
198 >  \r
199 >  test_begin_subtest "Search message: json"\r
200 >  add_message "[subject]=\"json-search-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[body]=\"json-search-message\""\r
201 > @@ -22,7 +22,7 @@ test_expect_equal "$output" "[{\"thread\": \"XXX\",\r
202 >  test_begin_subtest "Show message: json, utf-8"\r
203 >  add_message "[subject]=\"json-show-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[body]=\"jsön-show-méssage\""\r
204 >  output=$(notmuch show --format=json "jsön-show-méssage")\r
205 > -test_expect_equal "$output" "[[[{\"id\": \"${gen_msg_id}\", \"match\": true, \"filename\": \"${gen_msg_filename}\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\",\"unread\"], \"headers\": {\"Subject\": \"json-show-utf8-body-sübjéct\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"Sat, 01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"text/plain\", \"content\": \"jsön-show-méssage\n\"}]}, []]]]"\r
206 > +test_expect_equal "$output" "[[[{\"id\": \"${gen_msg_id}\", \"match\": true, \"excluded\": false, \"filename\": \"${gen_msg_filename}\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\",\"unread\"], \"headers\": {\"Subject\": \"json-show-utf8-body-sübjéct\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"Sat, 01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"text/plain\", \"content\": \"jsön-show-méssage\n\"}]}, []]]]"\r
207 >  \r
208 >  test_begin_subtest "Show message: json, inline attachment filename"\r
209 >  subject='json-show-inline-attachment-filename'\r
210 > @@ -35,7 +35,7 @@ emacs_deliver_message \\r
211 >       (insert \"Message-ID: <$id>\n\")"\r
212 >  output=$(notmuch show --format=json "id:$id")\r
213 >  filename=$(notmuch search --output=files "id:$id")\r
214 > -test_expect_equal "$output" "[[[{\"id\": \"$id\", \"match\": true, \"filename\": \"$filename\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\"], \"headers\": {\"Subject\": \"$subject\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"test_suite@notmuchmail.org\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"multipart/mixed\", \"content\": [{\"id\": 2, \"content-type\": \"text/plain\", \"content\": \"This is a test message with inline attachment with a filename\"}, {\"id\": 3, \"content-type\": \"application/octet-stream\", \"filename\": \"README\"}]}]}, []]]]"\r
215 > +test_expect_equal "$output" "[[[{\"id\": \"$id\", \"match\": true, \"excluded\": false, \"filename\": \"$filename\", \"timestamp\": 946728000, \"date_relative\": \"2000-01-01\", \"tags\": [\"inbox\"], \"headers\": {\"Subject\": \"$subject\", \"From\": \"Notmuch Test Suite <test_suite@notmuchmail.org>\", \"To\": \"test_suite@notmuchmail.org\", \"Cc\": \"\", \"Bcc\": \"\", \"Date\": \"01 Jan 2000 12:00:00 -0000\"}, \"body\": [{\"id\": 1, \"content-type\": \"multipart/mixed\", \"content\": [{\"id\": 2, \"content-type\": \"text/plain\", \"content\": \"This is a test message with inline attachment with a filename\"}, {\"id\": 3, \"content-type\": \"application/octet-stream\", \"filename\": \"README\"}]}]}, []]]]"\r
216 >  \r
217 >  test_begin_subtest "Search message: json, utf-8"\r
218 >  add_message "[subject]=\"json-search-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[body]=\"jsön-search-méssage\""\r
219 > diff --git a/test/maildir-sync b/test/maildir-sync\r
220 > index d5872a5..dfa3966 100755\r
221 > --- a/test/maildir-sync\r
222 > +++ b/test/maildir-sync\r
223 > @@ -46,6 +46,7 @@ test_begin_subtest "notmuch show works with renamed file (without notmuch new)"\r
224 >  output=$(notmuch show --format=json id:${gen_msg_id} | filter_show_json)\r
225 >  test_expect_equal "$output" '[[[{"id": "adding-replied-tag@notmuch-test-suite",\r
226 >  "match": true,\r
227 > +"excluded": false,\r
228 >  "filename": "MAIL_DIR/cur/adding-replied-tag:2,RS",\r
229 >  "timestamp": 978709437,\r
230 >  "date_relative": "2001-01-05",\r
231 > diff --git a/test/multipart b/test/multipart\r
232 > index 2dd73f5..3d2dcfc 100755\r
233 > --- a/test/multipart\r
234 > +++ b/test/multipart\r
235 > @@ -108,7 +108,7 @@ notmuch new > /dev/null\r
236 >  test_begin_subtest "--format=text --part=0, full message"\r
237 >  notmuch show --format=text --part=0 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT\r
238 >  cat <<EOF >EXPECTED\r
239 > -\f\r
240 message{ id:87liy5ap00.fsf@yoom.home.cworth.org depth:0 match:1 filename:${MAIL_DIR}/multipart\r
241 > +\f\r
242 message{ id:87liy5ap00.fsf@yoom.home.cworth.org depth:0 match:1 excluded:0 filename:${MAIL_DIR}/multipart\r
243 >  \f\r
244 header{\r
245 >  Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox signed unread)\r
246 >  Subject: Multipart message\r
247 > @@ -322,7 +322,7 @@ notmuch show --format=json --part=0 'id:87liy5ap00.fsf@yoom.home.cworth.org' | s\r
248 >  echo >>OUTPUT # expect *no* newline at end of output\r
249 >  cat <<EOF >EXPECTED\r
250 >  \r
251 > -{"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": "Fri, 05 Jan 2001 15:43:57 +0000"}, "body": [\r
252 > +{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "excluded": false, "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": "Fri, 05 Jan 2001 15:43:57 +0000"}, "body": [\r
253 >  {"id": 1, "content-type": "multipart/signed", "content": [\r
254 >  {"id": 2, "content-type": "multipart/mixed", "content": [\r
255 >  {"id": 3, "content-type": "message/rfc822", "content": [{"headers": {"From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Subject": "html message", "Date": "Fri, 05 Jan 2001 15:42:57 +0000"}, "body": [\r
256 > diff --git a/test/thread-naming b/test/thread-naming\r
257 > index 942e593..1a1a48f 100755\r
258 > --- a/test/thread-naming\r
259 > +++ b/test/thread-naming\r
260 > @@ -65,7 +65,7 @@ test_expect_equal "$output" "thread:XXX   2001-01-12 [6/8] Notmuch Test Suite; t\r
261 >  \r
262 >  test_begin_subtest 'Test order of messages in "notmuch show"'\r
263 >  output=$(notmuch show thread-naming | notmuch_show_sanitize)\r
264 > -test_expect_equal "$output" "\f\r
265 message{ id:msg-$(printf "%03d" $first)@notmuch-test-suite depth:0 match:1 filename:/XXX/mail/msg-$(printf "%03d" $first)\r
266 > +test_expect_equal "$output" "\f\r
267 message{ id:msg-$(printf "%03d" $first)@notmuch-test-suite depth:0 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $first)\r
268 >  \f\r
269 header{\r
270 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (unread)\r
271 >  Subject: thread-naming: Initial thread subject\r
272 > @@ -79,7 +79,7 @@ This is just a test message (#$first)\r
273 >  \f\r
274 part}\r
275 >  \f\r
276 body}\r
277 >  \f\r
278 message}\r
279 > -\f\r
280 message{ id:msg-$(printf "%03d" $((first + 1)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 1)))\r
281 > +\f\r
282 message{ id:msg-$(printf "%03d" $((first + 1)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 1)))\r
283 >  \f\r
284 header{\r
285 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-06) (inbox unread)\r
286 >  Subject: thread-naming: Older changed subject\r
287 > @@ -93,7 +93,7 @@ This is just a test message (#$((first + 1)))\r
288 >  \f\r
289 part}\r
290 >  \f\r
291 body}\r
292 >  \f\r
293 message}\r
294 > -\f\r
295 message{ id:msg-$(printf "%03d" $((first + 2)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 2)))\r
296 > +\f\r
297 message{ id:msg-$(printf "%03d" $((first + 2)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 2)))\r
298 >  \f\r
299 header{\r
300 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-07) (inbox unread)\r
301 >  Subject: thread-naming: Newer changed subject\r
302 > @@ -107,7 +107,7 @@ This is just a test message (#$((first + 2)))\r
303 >  \f\r
304 part}\r
305 >  \f\r
306 body}\r
307 >  \f\r
308 message}\r
309 > -\f\r
310 message{ id:msg-$(printf "%03d" $((first + 3)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 3)))\r
311 > +\f\r
312 message{ id:msg-$(printf "%03d" $((first + 3)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 3)))\r
313 >  \f\r
314 header{\r
315 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-08) (unread)\r
316 >  Subject: thread-naming: Final thread subject\r
317 > @@ -121,7 +121,7 @@ This is just a test message (#$((first + 3)))\r
318 >  \f\r
319 part}\r
320 >  \f\r
321 body}\r
322 >  \f\r
323 message}\r
324 > -\f\r
325 message{ id:msg-$(printf "%03d" $((first + 4)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 4)))\r
326 > +\f\r
327 message{ id:msg-$(printf "%03d" $((first + 4)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 4)))\r
328 >  \f\r
329 header{\r
330 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-09) (inbox unread)\r
331 >  Subject: Re: thread-naming: Initial thread subject\r
332 > @@ -135,7 +135,7 @@ This is just a test message (#$((first + 4)))\r
333 >  \f\r
334 part}\r
335 >  \f\r
336 body}\r
337 >  \f\r
338 message}\r
339 > -\f\r
340 message{ id:msg-$(printf "%03d" $((first + 5)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 5)))\r
341 > +\f\r
342 message{ id:msg-$(printf "%03d" $((first + 5)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 5)))\r
343 >  \f\r
344 header{\r
345 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-10) (inbox unread)\r
346 >  Subject: Aw: thread-naming: Initial thread subject\r
347 > @@ -149,7 +149,7 @@ This is just a test message (#$((first + 5)))\r
348 >  \f\r
349 part}\r
350 >  \f\r
351 body}\r
352 >  \f\r
353 message}\r
354 > -\f\r
355 message{ id:msg-$(printf "%03d" $((first + 6)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 6)))\r
356 > +\f\r
357 message{ id:msg-$(printf "%03d" $((first + 6)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 6)))\r
358 >  \f\r
359 header{\r
360 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-11) (inbox unread)\r
361 >  Subject: Vs: thread-naming: Initial thread subject\r
362 > @@ -163,7 +163,7 @@ This is just a test message (#$((first + 6)))\r
363 >  \f\r
364 part}\r
365 >  \f\r
366 body}\r
367 >  \f\r
368 message}\r
369 > -\f\r
370 message{ id:msg-$(printf "%03d" $((first + 7)))@notmuch-test-suite depth:1 match:1 filename:/XXX/mail/msg-$(printf "%03d" $((first + 7)))\r
371 > +\f\r
372 message{ id:msg-$(printf "%03d" $((first + 7)))@notmuch-test-suite depth:1 match:1 excluded:0 filename:/XXX/mail/msg-$(printf "%03d" $((first + 7)))\r
373 >  \f\r
374 header{\r
375 >  Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-12) (inbox unread)\r
376 >  Subject: Sv: thread-naming: Initial thread subject\r