1 Return-Path: <awg@lagos.xvx.ca>
\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 ED815431FCB
\r
6 for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 09:47:09 -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
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 HMU0TeSN0bNI for <notmuch@notmuchmail.org>;
\r
16 Thu, 19 Jan 2012 09:47:08 -0800 (PST)
\r
17 Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 37244431FBD
\r
19 for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 09:47:07 -0800 (PST)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml1no-ssvc.prod.shaw.ca)
\r
22 by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 19 Jan 2012 10:47:05 -0700
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=Cufqhujp69hR+MhiHu40yK/USb/hlYs0+irVU46A6+k=
\r
26 a=Zol3CxvlyS0A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17
\r
27 a=bz-zy3QpAAAA:8 a=7343-z1_AAAA:8 a=zdyeZAWpJ2uQdTp3UlkA:9
\r
28 a=8RRnNBo1tgW-nQP7ESsA:7 a=NFWI-YhVVZsA:10 a=GjjSzUO_F3QA:10
\r
29 a=0c-eHkXYtrgA:10 a=pIMJlJgVeHwA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
\r
30 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])
\r
31 by pd6ml1no-dmz.prod.shaw.ca with ESMTP; 19 Jan 2012 10:47:05 -0700
\r
32 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
33 id D8C888004C24; Thu, 19 Jan 2012 10:47:04 -0700 (MST)
\r
34 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v3 1/5] test: Add broken test for the new JSON reply format.
\r
37 Date: Thu, 19 Jan 2012 10:46:53 -0700
\r
38 Message-Id: <1326995217-27423-2-git-send-email-awg+notmuch@xvx.ca>
\r
39 X-Mailer: git-send-email 1.7.5.4
\r
40 In-Reply-To: <1326995217-27423-1-git-send-email-awg+notmuch@xvx.ca>
\r
41 References: <1326995217-27423-1-git-send-email-awg+notmuch@xvx.ca>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Thu, 19 Jan 2012 17:47:10 -0000
\r
57 test/multipart | 7 +++++++
\r
58 1 files changed, 7 insertions(+), 0 deletions(-)
\r
60 diff --git a/test/multipart b/test/multipart
\r
61 index f83526b..f5ebf04 100755
\r
62 --- a/test/multipart
\r
63 +++ b/test/multipart
\r
64 @@ -589,6 +589,13 @@ Non-text part: text/html
\r
66 test_expect_equal_file OUTPUT EXPECTED
\r
68 +test_begin_subtest "'notmuch reply' to a multipart message with json format"
\r
69 +notmuch reply --format=json 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT
\r
70 +cat <<EOF >EXPECTED
\r
71 +[{ "reply": { "headers": { "from": "Notmuch Test Suite <test_suite@notmuchmail.org>", "to": "Carl Worth <cworth@cworth.org>, cworth@cworth.org", "subject": "Re: Multipart message", "in-reply-to": "<87liy5ap00.fsf@yoom.home.cworth.org>", "references": " <87liy5ap00.fsf@yoom.home.cworth.org>"} }, "original": { "headers": { "from": "Carl Worth <cworth@cworth.org>", "to": "cworth@cworth.org", "cc": "", "subject": "Multipart message", "date": "Fri, 05 Jan 2001 15:43:57 +0000", "in-reply-to": "", "references": "" }, "body": [ { "content-type": "text/html", "content": "<p>This is an embedded message, with a multipart/alternative part.</p>\n"}, { "content-type": "text/plain", "content": "This is an embedded message, with a multipart/alternative part.\n"}, { "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}, {} ] } }, {} ]
\r
73 +test_expect_equal_file OUTPUT EXPECTED
\r
75 test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"
\r
76 notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out
\r
77 echo -n -e "\xEF\x0D\x0A" > crlf.expected
\r