Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 90 / 0df59c154a2d873217eb88d34ddeea91bfce93
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 52A3C429E26\r
6         for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 19:50:31 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 dR35gCr68APF for <notmuch@notmuchmail.org>;\r
16         Wed, 11 Jan 2012 19:50:29 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
18         [18.9.25.14])\r
19         by olra.theworths.org (Postfix) with ESMTP id 51FC5429E25\r
20         for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 19:50:29 -0800 (PST)\r
21 X-AuditID: 1209190e-b7f7c6d0000008c3-a4-4f0e58849f90\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
23         by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id CB.36.02243.4885E0F4; Wed, 11 Jan 2012 22:50:28 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q0C3oSVl032256; \r
27         Wed, 11 Jan 2012 22:50:28 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0C3oRmL014719\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Wed, 11 Jan 2012 22:50:27 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1RlBgO-0004j5-4O; Wed, 11 Jan 2012 22:50:32 -0500\r
37 Date: Wed, 11 Jan 2012 22:50:32 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Jani Nikula <jani@nikula.org>\r
40 Subject: Re: [PATCH v3 4/4] test: add tests for "notmuch reply"\r
41         --reply-to=sender\r
42 Message-ID: <20120112035032.GV20796@mit.edu>\r
43 References: <cover.1325794371.git.jani@nikula.org>\r
44         <cover.1326224339.git.jani@nikula.org>\r
45         <33b8a00a073d39baeecc86b8b8f97683d2cec3c0.1326224339.git.jani@nikula.org>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=us-ascii\r
48 Content-Disposition: inline\r
49 In-Reply-To:\r
50  <33b8a00a073d39baeecc86b8b8f97683d2cec3c0.1326224339.git.jani@nikula.org>\r
51 User-Agent: Mutt/1.5.21 (2010-09-15)\r
52 X-Brightmail-Tracker:\r
53  H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT0W2J4PM3mLPQwKJpurPF9ZszmR2Y\r
54         PG7df83u8WzVLeYApigum5TUnMyy1CJ9uwSujOObzrAXnA2uOPf6JWsDY7dzFyMnh4SAicSG\r
55         m3dYIWwxiQv31rN1MXJxCAnsY5S4ufsNWEJIYAOjxNnrYRCJk0wSl2/+ZoRwljBKzD10hwmk\r
56         ikVAVaJ74RNGEJtNQENi2/7lYLaIgKLE5pP7wWxmAWmJb7+bweqFBYIlzr26xwZi8wroSExu\r
57         uM8CMXQ5o8T7o/8ZIRKCEidnPmGBaNaSuPHvJVAzB9ig5f84QMKcAmESS/Z+A5spKqAiMeXk\r
58         NrYJjEKzkHTPQtI9C6F7ASPzKkbZlNwq3dzEzJzi1GTd4uTEvLzUIl1jvdzMEr3UlNJNjKCw\r
59         5pTk28H49aDSIUYBDkYlHt6de3n9hVgTy4orcw8xSnIwKYny3gjn8xfiS8pPqcxILM6ILyrN\r
60         SS0+xCjBwawkwutUA1TOm5JYWZValA+TkuZgURLnVdN65yckkJ5YkpqdmlqQWgSTleHgUJLg\r
61         vQgyVLAoNT21Ii0zpwQhzcTBCTKcB2j4CZAa3uKCxNzizHSI/ClGRSlx3i6QhABIIqM0D64X\r
62         lnZeMYoDvSLMewGkigeYsuC6XwENZgIavGUdD8jgkkSElFQDY9NBGbvqDzPXqzOXcnn4C//k\r
63         8HuVpWp41KR+u7tk+ZNdpV8/HPlorB969vwF+3mP1mRdfXFvVf0Dvf9z4475uLa/3PRhsojK\r
64         mW+b6nZZ7J46T8KJVeV6yW/GVRU9jzNWsijzO54re2BbfWTHgzCbpHkbkl0Kg1KMin5qCncd\r
65         8Wl6ufzv2nl53UosxRmJhlrMRcWJAKjRFvIWAwAA\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: Thu, 12 Jan 2012 03:50:31 -0000\r
80 \r
81 I'm not sure what the point of the last test is, but this patch\r
82 covered everything I could think of, so LGTM.\r
83 \r
84 Quoth Jani Nikula on Jan 10 at  9:54 pm:\r
85 > From: Mark Walters <markwalters1009@gmail.com>\r
86\r
87 > ---\r
88 >  test/notmuch-test    |    1 +\r
89 >  test/reply-to-sender |  209 ++++++++++++++++++++++++++++++++++++++++++++++++++\r
90 >  2 files changed, 210 insertions(+), 0 deletions(-)\r
91 >  create mode 100755 test/reply-to-sender\r
92\r
93 > diff --git a/test/notmuch-test b/test/notmuch-test\r
94 > index e40ef86..6a99ae3 100755\r
95 > --- a/test/notmuch-test\r
96 > +++ b/test/notmuch-test\r
97 > @@ -33,6 +33,7 @@ TESTS="\r
98 >    thread-naming\r
99 >    raw\r
100 >    reply\r
101 > +  reply-to-sender\r
102 >    dump-restore\r
103 >    uuencode\r
104 >    thread-order\r
105 > diff --git a/test/reply-to-sender b/test/reply-to-sender\r
106 > new file mode 100755\r
107 > index 0000000..c7d15bb\r
108 > --- /dev/null\r
109 > +++ b/test/reply-to-sender\r
110 > @@ -0,0 +1,209 @@\r
111 > +#!/usr/bin/env bash\r
112 > +test_description="\"notmuch reply --reply-to=sender\" in several variations"\r
113 > +. ./test-lib.sh\r
114 > +\r
115 > +test_begin_subtest "Basic reply-to-sender"\r
116 > +add_message '[from]="Sender <sender@example.com>"' \\r
117 > +             [to]=test_suite@notmuchmail.org \\r
118 > +             [subject]=notmuch-reply-test \\r
119 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
120 > +            '[body]="basic reply-to-sender test"'\r
121 > +\r
122 > +output=$(notmuch reply --reply-to=sender id:${gen_msg_id})\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>\r
126 > +In-Reply-To: <${gen_msg_id}>\r
127 > +References: <${gen_msg_id}>\r
128 > +\r
129 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
130 > +> basic reply-to-sender test"\r
131 > +\r
132 > +test_begin_subtest "From Us, Basic reply to message"\r
133 > +add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \\r
134 > +            '[to]="Recipient <recipient@example.com>"' \\r
135 > +             [subject]=notmuch-reply-test \\r
136 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
137 > +            '[body]="basic reply-to-from-us test"'\r
138 > +\r
139 > +output=$(notmuch reply --reply-to=sender id:${gen_msg_id})\r
140 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
141 > +Subject: Re: notmuch-reply-test\r
142 > +To: Recipient <recipient@example.com>\r
143 > +In-Reply-To: <${gen_msg_id}>\r
144 > +References: <${gen_msg_id}>\r
145 > +\r
146 > +On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
147 > +> basic reply-to-from-us test"\r
148 > +\r
149 > +test_begin_subtest "Multiple recipients"\r
150 > +add_message '[from]="Sender <sender@example.com>"' \\r
151 > +            '[to]="test_suite@notmuchmail.org, Someone Else <someone@example.com>"' \\r
152 > +             [subject]=notmuch-reply-test \\r
153 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
154 > +            '[body]="Multiple recipients"'\r
155 > +\r
156 > +output=$(notmuch reply  --reply-to=sender  id:${gen_msg_id})\r
157 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
158 > +Subject: Re: notmuch-reply-test\r
159 > +To: Sender <sender@example.com>\r
160 > +In-Reply-To: <${gen_msg_id}>\r
161 > +References: <${gen_msg_id}>\r
162 > +\r
163 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
164 > +> Multiple recipients"\r
165 > +\r
166 > +test_begin_subtest "From Us, Multiple TO recipients"\r
167 > +add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \\r
168 > +            '[to]="Recipient <recipient@example.com>, Someone Else <someone@example.com>"' \\r
169 > +             [subject]=notmuch-reply-test \\r
170 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
171 > +            '[body]="From Us, Multiple TO recipients"'\r
172 > +\r
173 > +output=$(notmuch reply  --reply-to=sender  id:${gen_msg_id})\r
174 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
175 > +Subject: Re: notmuch-reply-test\r
176 > +To: Recipient <recipient@example.com>, Someone Else <someone@example.com>\r
177 > +In-Reply-To: <${gen_msg_id}>\r
178 > +References: <${gen_msg_id}>\r
179 > +\r
180 > +On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
181 > +> From Us, Multiple TO recipients"\r
182 > +\r
183 > +test_begin_subtest "Reply with CC"\r
184 > +add_message '[from]="Sender <sender@example.com>"' \\r
185 > +             [to]=test_suite@notmuchmail.org \\r
186 > +            '[cc]="Other Parties <cc@example.com>"' \\r
187 > +             [subject]=notmuch-reply-test \\r
188 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
189 > +            '[body]="reply with CC"'\r
190 > +\r
191 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
192 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
193 > +Subject: Re: notmuch-reply-test\r
194 > +To: Sender <sender@example.com>\r
195 > +In-Reply-To: <${gen_msg_id}>\r
196 > +References: <${gen_msg_id}>\r
197 > +\r
198 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
199 > +> reply with CC"\r
200 > +\r
201 > +test_begin_subtest "From Us, Reply with CC"\r
202 > +add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \\r
203 > +            '[to]="Recipient <recipient@example.com>"' \\r
204 > +            '[cc]="Other Parties <cc@example.com>"' \\r
205 > +             [subject]=notmuch-reply-test \\r
206 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
207 > +            '[body]="reply with CC"'\r
208 > +\r
209 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
210 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
211 > +Subject: Re: notmuch-reply-test\r
212 > +To: Recipient <recipient@example.com>\r
213 > +In-Reply-To: <${gen_msg_id}>\r
214 > +References: <${gen_msg_id}>\r
215 > +\r
216 > +On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
217 > +> reply with CC"\r
218 > +\r
219 > +test_begin_subtest "From Us, Reply no TO but with CC"\r
220 > +add_message '[from]="Notmuch Test Suite <test_suite@notmuchmail.org>"' \\r
221 > +            '[cc]="Other Parties <cc@example.com>"' \\r
222 > +             [subject]=notmuch-reply-test \\r
223 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
224 > +            '[body]="reply with CC"'\r
225 > +\r
226 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
227 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
228 > +Subject: Re: notmuch-reply-test\r
229 > +Cc: Other Parties <cc@example.com>\r
230 > +In-Reply-To: <${gen_msg_id}>\r
231 > +References: <${gen_msg_id}>\r
232 > +\r
233 > +On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
234 > +> reply with CC"\r
235 > +\r
236 > +test_begin_subtest "Reply from alternate address"\r
237 > +add_message '[from]="Sender <sender@example.com>"' \\r
238 > +             [to]=test_suite_other@notmuchmail.org \\r
239 > +             [subject]=notmuch-reply-test \\r
240 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
241 > +            '[body]="reply from alternate address"'\r
242 > +\r
243 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
244 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org>\r
245 > +Subject: Re: notmuch-reply-test\r
246 > +To: Sender <sender@example.com>\r
247 > +In-Reply-To: <${gen_msg_id}>\r
248 > +References: <${gen_msg_id}>\r
249 > +\r
250 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
251 > +> reply from alternate address"\r
252 > +\r
253 > +test_begin_subtest "Support for Reply-To"\r
254 > +add_message '[from]="Sender <sender@example.com>"' \\r
255 > +             [to]=test_suite@notmuchmail.org \\r
256 > +             [subject]=notmuch-reply-test \\r
257 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
258 > +            '[body]="support for reply-to"' \\r
259 > +            '[reply-to]="Sender <elsewhere@example.com>"'\r
260 > +\r
261 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
262 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
263 > +Subject: Re: notmuch-reply-test\r
264 > +To: Sender <elsewhere@example.com>\r
265 > +In-Reply-To: <${gen_msg_id}>\r
266 > +References: <${gen_msg_id}>\r
267 > +\r
268 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
269 > +> support for reply-to"\r
270 > +\r
271 > +test_begin_subtest "Support for Reply-To with multiple recipients"\r
272 > +add_message '[from]="Sender <sender@example.com>"' \\r
273 > +            '[to]="test_suite@notmuchmail.org, Someone Else <someone@example.com>"' \\r
274 > +             [subject]=notmuch-reply-test \\r
275 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
276 > +            '[body]="support for reply-to with multiple recipients"' \\r
277 > +            '[reply-to]="Sender <elsewhere@example.com>"'\r
278 > +\r
279 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
280 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
281 > +Subject: Re: notmuch-reply-test\r
282 > +To: Sender <elsewhere@example.com>\r
283 > +In-Reply-To: <${gen_msg_id}>\r
284 > +References: <${gen_msg_id}>\r
285 > +\r
286 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
287 > +> support for reply-to with multiple recipients"\r
288 > +\r
289 > +test_begin_subtest "Un-munging Reply-To"\r
290 > +add_message '[from]="Sender <sender@example.com>"' \\r
291 > +            '[to]="Some List <list@example.com>"' \\r
292 > +             [subject]=notmuch-reply-test \\r
293 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
294 > +            '[body]="Un-munging Reply-To"' \\r
295 > +            '[reply-to]="Evil Munging List <list@example.com>"'\r
296 > +\r
297 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
298 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
299 > +Subject: Re: notmuch-reply-test\r
300 > +To: Sender <sender@example.com>\r
301 > +In-Reply-To: <${gen_msg_id}>\r
302 > +References: <${gen_msg_id}>\r
303 > +\r
304 > +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
305 > +> Un-munging Reply-To"\r
306 > +\r
307 > +test_begin_subtest "Message with header of exactly 200 bytes"\r
308 > +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
309 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
310 > +            '[body]="200-byte header"'\r
311 > +output=$(notmuch reply  --reply-to=sender id:${gen_msg_id})\r
312 > +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
313 > +Subject: Re: 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
314 > +In-Reply-To: <${gen_msg_id}>\r
315 > +References: <${gen_msg_id}>\r
316 > +\r
317 > +On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
318 > +> 200-byte header"\r
319 > +test_done\r