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 EC7D040EF33
\r
6 for <notmuch@notmuchmail.org>; Sat, 7 Jan 2012 23:53: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 RyhVA6JJDmmr for <notmuch@notmuchmail.org>;
\r
16 Sat, 7 Jan 2012 23:53:09 -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 3BB7B40EF2A
\r
19 for <notmuch@notmuchmail.org>; Sat, 7 Jan 2012 23:53:06 -0800 (PST)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml2no-ssvc.prod.shaw.ca)
\r
22 by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 08 Jan 2012 00:53:05 -0700
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=oQE6vNJ3d7oTBHj4PDKYH99BAdyPlqTp0xAtaaBYR4E=
\r
26 a=wje0XkbQfH0A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17
\r
27 a=bz-zy3QpAAAA:8 a=7343-z1_AAAA:8 a=zdyeZAWpJ2uQdTp3UlkA:9
\r
28 a=txVU6qcWL9rCQJ1c80MA: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 pd6ml2no-dmz.prod.shaw.ca with ESMTP; 08 Jan 2012 00:53:05 -0700
\r
32 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
33 id 95EA28004202; Sun, 8 Jan 2012 00:53:05 -0700 (MST)
\r
34 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
35 To: notmuch@notmuchmail.org,
\r
37 Subject: [PATCH 1/4] test: Add broken test for the new JSON reply format.
\r
38 Date: Sun, 8 Jan 2012 00:52:39 -0700
\r
39 Message-Id: <1326009162-19524-2-git-send-email-awg+notmuch@xvx.ca>
\r
40 X-Mailer: git-send-email 1.7.5.4
\r
41 In-Reply-To: <1326009162-19524-1-git-send-email-awg+notmuch@xvx.ca>
\r
42 References: <1326009162-19524-1-git-send-email-awg+notmuch@xvx.ca>
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Sun, 08 Jan 2012 07:53:10 -0000
\r
57 From: Adam Wolfe Gordon <awg@xvx.ca>
\r
60 test/multipart | 7 +++++++
\r
61 1 files changed, 7 insertions(+), 0 deletions(-)
\r
63 diff --git a/test/multipart b/test/multipart
\r
64 index f83526b..f5ebf04 100755
\r
65 --- a/test/multipart
\r
66 +++ b/test/multipart
\r
67 @@ -589,6 +589,13 @@ Non-text part: text/html
\r
69 test_expect_equal_file OUTPUT EXPECTED
\r
71 +test_begin_subtest "'notmuch reply' to a multipart message with json format"
\r
72 +notmuch reply --format=json 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT
\r
73 +cat <<EOF >EXPECTED
\r
74 +[{ "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
76 +test_expect_equal_file OUTPUT EXPECTED
\r
78 test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"
\r
79 notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out
\r
80 echo -n -e "\xEF\x0D\x0A" > crlf.expected
\r