1 Return-Path: <bremner@tethera.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 1E663429E3E
\r
6 for <notmuch@notmuchmail.org>; Sun, 10 Nov 2013 19:15:59 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id K-OVXdkpaAPR for <notmuch@notmuchmail.org>;
\r
16 Sun, 10 Nov 2013 19:15:51 -0800 (PST)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 95A46431FDC
\r
21 for <notmuch@notmuchmail.org>; Sun, 10 Nov 2013 19:15:51 -0800 (PST)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <bremner@tethera.net>)
\r
24 id 1Vfhyh-0003Ca-8x; Sun, 10 Nov 2013 23:15:51 -0400
\r
25 Received: (nullmailer pid 14513 invoked by uid 1000); Mon, 11 Nov 2013
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: notmuch@notmuchmail.org
\r
29 Subject: [Patch v2 2/2] test: work around gmime bug using
\r
30 notmuch_reply_sanitize
\r
31 Date: Sun, 10 Nov 2013 23:15:34 -0400
\r
32 Message-Id: <1384139734-14427-2-git-send-email-david@tethera.net>
\r
33 X-Mailer: git-send-email 1.8.4.2
\r
34 In-Reply-To: <1384139734-14427-1-git-send-email-david@tethera.net>
\r
35 References: <1384100482-15453-3-git-send-email-david@tethera.net>
\r
36 <1384139734-14427-1-git-send-email-david@tethera.net>
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Mon, 11 Nov 2013 03:15:59 -0000
\r
51 The user still has to set NOTMUCH_TEST_WORKAROUNDS
\r
53 test/from-guessing | 22 +++++++++++-----------
\r
54 test/multipart | 2 +-
\r
55 test/reply | 24 ++++++++++++------------
\r
56 test/reply-to-sender | 24 ++++++++++++------------
\r
57 4 files changed, 36 insertions(+), 36 deletions(-)
\r
59 diff --git a/test/from-guessing b/test/from-guessing
\r
60 index 6dfaa40..bdda13b 100755
\r
61 --- a/test/from-guessing
\r
62 +++ b/test/from-guessing
\r
63 @@ -9,7 +9,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
64 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
65 '[body]="from guessing test"'
\r
67 -output=$(notmuch reply id:${gen_msg_id})
\r
68 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
69 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
70 Subject: Re: notmuch-reply-test
\r
71 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
72 @@ -27,7 +27,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
73 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
74 '[body]="from guessing test"'
\r
76 -output=$(notmuch reply id:${gen_msg_id})
\r
77 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
78 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
79 Subject: Re: notmuch-reply-test
\r
80 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
81 @@ -45,7 +45,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
82 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
83 '[body]="from guessing test"'
\r
85 -output=$(notmuch reply id:${gen_msg_id})
\r
86 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
87 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
88 Subject: Re: notmuch-reply-test
\r
89 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
90 @@ -65,7 +65,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
91 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
92 '[body]="from guessing test"'
\r
94 -output=$(notmuch reply id:${gen_msg_id})
\r
95 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
96 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
97 Subject: Re: notmuch-reply-test
\r
98 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
99 @@ -85,7 +85,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
100 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
101 '[body]="from guessing test"'
\r
103 -output=$(notmuch reply id:${gen_msg_id})
\r
104 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
105 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@otherdomain.org>
\r
106 Subject: Re: notmuch-reply-test
\r
107 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
108 @@ -107,7 +107,7 @@ Received: from extraneous.example.com (extraneous.example.com [1.1.1.1])\"" \
\r
109 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
110 '[body]="from guessing test"'
\r
112 -output="$(notmuch reply id:${gen_msg_id})"
\r
113 +output="$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)"
\r
114 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
115 Subject: Re: notmuch-reply-test
\r
116 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
117 @@ -128,7 +128,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
118 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
119 '[body]="from guessing test"'
\r
121 -output=$(notmuch reply id:${gen_msg_id})
\r
122 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
123 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
124 Subject: Re: notmuch-reply-test
\r
125 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
126 @@ -146,7 +146,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
127 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
128 '[body]="from guessing test"'
\r
130 -output=$(notmuch reply id:${gen_msg_id})
\r
131 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
132 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
133 Subject: Re: notmuch-reply-test
\r
134 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
135 @@ -164,7 +164,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
136 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
137 '[body]="from guessing test"'
\r
139 -output=$(notmuch reply id:${gen_msg_id})
\r
140 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
141 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
142 Subject: Re: notmuch-reply-test
\r
143 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
144 @@ -184,7 +184,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
145 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
146 '[body]="from guessing test"'
\r
148 -output=$(notmuch reply id:${gen_msg_id})
\r
149 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
150 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
151 Subject: Re: notmuch-reply-test
\r
152 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
153 @@ -204,7 +204,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
154 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
155 '[body]="from guessing test"'
\r
157 -output=$(notmuch reply id:${gen_msg_id})
\r
158 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
159 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
160 Subject: Re: notmuch-reply-test
\r
161 To: Sender <sender@example.com>, mailinglist@notmuchmail.org
\r
162 diff --git a/test/multipart b/test/multipart
\r
163 index b40fa2c..05a5f1d 100755
\r
164 --- a/test/multipart
\r
165 +++ b/test/multipart
\r
166 @@ -569,7 +569,7 @@ test_expect_success \
\r
167 "! notmuch show --format=mbox --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org'"
\r
169 test_begin_subtest "'notmuch reply' to a multipart message"
\r
170 -notmuch reply 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT
\r
171 +notmuch reply 'id:87liy5ap00.fsf@yoom.home.cworth.org' | notmuch_reply_sanitize >OUTPUT
\r
172 cat <<EOF >EXPECTED
\r
173 From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
174 Subject: Re: Multipart message
\r
175 diff --git a/test/reply b/test/reply
\r
176 index b0d854a..8929de0 100755
\r
179 @@ -9,7 +9,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
180 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
181 '[body]="basic reply test"'
\r
183 -output=$(notmuch reply id:${gen_msg_id})
\r
184 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
185 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
186 Subject: Re: notmuch-reply-test
\r
187 To: Sender <sender@example.com>
\r
188 @@ -26,7 +26,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
189 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
190 '[body]="Multiple recipients"'
\r
192 -output=$(notmuch reply id:${gen_msg_id})
\r
193 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
194 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
195 Subject: Re: notmuch-reply-test
\r
196 To: Sender <sender@example.com>, Someone Else <someone@example.com>
\r
197 @@ -44,7 +44,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
198 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
199 '[body]="reply with CC"'
\r
201 -output=$(notmuch reply id:${gen_msg_id})
\r
202 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
203 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
204 Subject: Re: notmuch-reply-test
\r
205 To: Sender <sender@example.com>
\r
206 @@ -62,7 +62,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
207 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
208 '[body]="reply from alternate address"'
\r
210 -output=$(notmuch reply id:${gen_msg_id})
\r
211 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
212 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
213 Subject: Re: notmuch-reply-test
\r
214 To: Sender <sender@example.com>
\r
215 @@ -80,7 +80,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
216 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
217 '[body]="Reply from address in named group list"'
\r
219 -output=$(notmuch reply id:${gen_msg_id})
\r
220 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
221 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
222 Subject: Re: notmuch-reply-test
\r
223 To: Sender <sender@example.com>, someone@example.com
\r
224 @@ -98,7 +98,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
225 '[body]="support for reply-to"' \
\r
226 '[reply-to]="Sender <elsewhere@example.com>"'
\r
228 -output=$(notmuch reply id:${gen_msg_id})
\r
229 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
230 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
231 Subject: Re: notmuch-reply-test
\r
232 To: Sender <elsewhere@example.com>
\r
233 @@ -116,7 +116,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
234 '[body]="Un-munging Reply-To"' \
\r
235 '[reply-to]="Evil Munging List <list@example.com>"'
\r
237 -output=$(notmuch reply id:${gen_msg_id})
\r
238 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
239 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
240 Subject: Re: notmuch-reply-test
\r
241 To: Sender <sender@example.com>, Some List <list@example.com>
\r
242 @@ -130,7 +130,7 @@ test_begin_subtest "Message with header of exactly 200 bytes"
\r
243 add_message '[subject]="This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces"' \
\r
244 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
245 '[body]="200-byte header"'
\r
246 -output=$(notmuch reply id:${gen_msg_id})
\r
247 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
248 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
249 Subject: Re: This subject is exactly 200 bytes in length. Other than its
\r
250 length there is not much of note here. Note that the length of 200 bytes
\r
251 @@ -149,7 +149,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
252 '[body]="From guessing"' \
\r
253 '[header]="Envelope-To: test_suite_other@notmuchmail.org"'
\r
255 -output=$(notmuch reply id:${gen_msg_id})
\r
256 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
257 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
258 Subject: Re: From guessing
\r
259 To: Sender <sender@example.com>, Recipient <recipient@example.com>
\r
260 @@ -167,7 +167,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
261 '[body]="From guessing"' \
\r
262 '[header]="X-Original-To: test_suite@otherdomain.org"'
\r
264 -output=$(notmuch reply id:${gen_msg_id})
\r
265 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
266 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@otherdomain.org>
\r
267 Subject: Re: From guessing
\r
268 To: Sender <sender@example.com>, Recipient <recipient@example.com>
\r
269 @@ -185,7 +185,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
270 '[body]="From guessing"' \
\r
271 '[header]="Delivered-To: test_suite_other@notmuchmail.org"'
\r
273 -output=$(notmuch reply id:${gen_msg_id})
\r
274 +output=$(notmuch reply id:${gen_msg_id} | notmuch_reply_sanitize)
\r
275 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
276 Subject: Re: From guessing
\r
277 To: Sender <sender@example.com>, Recipient <recipient@example.com>
\r
278 @@ -204,7 +204,7 @@ add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \
\r
279 # GMime happens to change from Q- to B-encoding. We canonicalize the
\r
280 # case of the encoding and charset because different versions of GMime
\r
281 # capitalize the encoding differently.
\r
282 -output=$(notmuch reply id:${gen_msg_id} | perl -pe 's/=\?[^?]+\?[bB]\?/lc($&)/ge')
\r
283 +output=$(notmuch reply id:${gen_msg_id} | perl -pe 's/=\?[^?]+\?[bB]\?/lc($&)/ge' | notmuch_reply_sanitize)
\r
284 test_expect_equal "$output" "\
\r
285 From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
286 Subject: Re: =?iso-8859-1?b?4N/n?=
\r
287 diff --git a/test/reply-to-sender b/test/reply-to-sender
\r
288 index 30e5e38..194b2ae 100755
\r
289 --- a/test/reply-to-sender
\r
290 +++ b/test/reply-to-sender
\r
291 @@ -9,7 +9,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
292 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
293 '[body]="basic reply-to-sender test"'
\r
295 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
296 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
297 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
298 Subject: Re: notmuch-reply-test
\r
299 To: Sender <sender@example.com>
\r
300 @@ -26,7 +26,7 @@ add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \
\r
301 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
302 '[body]="basic reply-to-from-us test"'
\r
304 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
305 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
306 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
307 Subject: Re: notmuch-reply-test
\r
308 To: Recipient <recipient@example.com>
\r
309 @@ -43,7 +43,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
310 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
311 '[body]="Multiple recipients"'
\r
313 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
314 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
315 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
316 Subject: Re: notmuch-reply-test
\r
317 To: Sender <sender@example.com>
\r
318 @@ -60,7 +60,7 @@ add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \
\r
319 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
320 '[body]="From Us, Multiple TO recipients"'
\r
322 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
323 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
324 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
325 Subject: Re: notmuch-reply-test
\r
326 To: Recipient <recipient@example.com>, Someone Else <someone@example.com>
\r
327 @@ -78,7 +78,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
328 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
329 '[body]="reply with CC"'
\r
331 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
332 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
333 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
334 Subject: Re: notmuch-reply-test
\r
335 To: Sender <sender@example.com>
\r
336 @@ -96,7 +96,7 @@ add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \
\r
337 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
338 '[body]="reply with CC"'
\r
340 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
341 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
342 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
343 Subject: Re: notmuch-reply-test
\r
344 To: Recipient <recipient@example.com>
\r
345 @@ -113,7 +113,7 @@ add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \
\r
346 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
347 '[body]="reply with CC"'
\r
349 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
350 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
351 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
352 Subject: Re: notmuch-reply-test
\r
353 Cc: Other Parties <cc@example.com>
\r
354 @@ -130,7 +130,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
355 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
356 '[body]="reply from alternate address"'
\r
358 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
359 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
360 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>
\r
361 Subject: Re: notmuch-reply-test
\r
362 To: Sender <sender@example.com>
\r
363 @@ -148,7 +148,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
364 '[body]="support for reply-to"' \
\r
365 '[reply-to]="Sender <elsewhere@example.com>"'
\r
367 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
368 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
369 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
370 Subject: Re: notmuch-reply-test
\r
371 To: Sender <elsewhere@example.com>
\r
372 @@ -166,7 +166,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
373 '[body]="support for reply-to with multiple recipients"' \
\r
374 '[reply-to]="Sender <elsewhere@example.com>"'
\r
376 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
377 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
378 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
379 Subject: Re: notmuch-reply-test
\r
380 To: Sender <elsewhere@example.com>
\r
381 @@ -184,7 +184,7 @@ add_message '[from]="Sender <sender@example.com>"' \
\r
382 '[body]="Un-munging Reply-To"' \
\r
383 '[reply-to]="Evil Munging List <list@example.com>"'
\r
385 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
386 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
387 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
388 Subject: Re: notmuch-reply-test
\r
389 To: Sender <sender@example.com>
\r
390 @@ -198,7 +198,7 @@ test_begin_subtest "Message with header of exactly 200 bytes"
\r
391 add_message '[subject]="This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces"' \
\r
392 '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
393 '[body]="200-byte header"'
\r
394 -output=$(notmuch reply --reply-to=sender id:${gen_msg_id})
\r
395 +output=$(notmuch reply --reply-to=sender id:${gen_msg_id} | notmuch_reply_sanitize)
\r
396 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
397 Subject: Re: This subject is exactly 200 bytes in length. Other than its
\r
398 length there is not much of note here. Note that the length of 200 bytes
\r