Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 56 / 4407936af382025e96869c26812f8d84ec64aa
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 0E98F431FAE\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 21:30:23 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 49R2aiwKzRrQ for <notmuch@notmuchmail.org>;\r
16         Tue, 13 Mar 2012 21:30:22 -0700 (PDT)\r
17 Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12])\r
18         by olra.theworths.org (Postfix) with ESMTP id 4688A431FAF\r
19         for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 21:30:22 -0700 (PDT)\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml1no-ssvc.prod.shaw.ca)\r
21         ([10.0.144.222])\r
22         by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 13 Mar 2012 22:30:21 -0600\r
23 X-Cloudmark-SP-Filtered: true\r
24 X-Cloudmark-SP-Result: v=1.1 cv=Ro8QOmc0aMDfanRtxUddlQ8SbE2D0zCZP8MBHZpYE5w=\r
25         c=1 sm=1\r
26         a=Q0bTnv93de0A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
27         a=bz-zy3QpAAAA:8 a=7343-z1_AAAA:8 a=k6VnKhIuyadO14Jm798A:9\r
28         a=s2o6Fy0JUDKob3p5bcsA:7 a=NFWI-YhVVZsA:10 a=0c-eHkXYtrgA:10\r
29         a=pIMJlJgVeHwA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
30 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
31         by pd7ml1no-dmz.prod.shaw.ca with ESMTP; 13 Mar 2012 22:30:21 -0600\r
32 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
33         id ACA73800422C; Tue, 13 Mar 2012 22:30:20 -0600 (MDT)\r
34 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH v7.1 01/11] test: Add broken test for the new JSON reply\r
37         format.\r
38 Date: Tue, 13 Mar 2012 22:30:06 -0600\r
39 Message-Id: <1331699416-30775-2-git-send-email-awg+notmuch@xvx.ca>\r
40 X-Mailer: git-send-email 1.7.5.4\r
41 In-Reply-To: <1331699416-30775-1-git-send-email-awg+notmuch@xvx.ca>\r
42 References: <1331525142-30539-1-git-send-email-awg+notmuch@xvx.ca>\r
43         <1331699416-30775-1-git-send-email-awg+notmuch@xvx.ca>\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Wed, 14 Mar 2012 04:30:23 -0000\r
57 \r
58 ---\r
59  test/multipart |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++\r
60  1 files changed, 53 insertions(+), 0 deletions(-)\r
61 \r
62 diff --git a/test/multipart b/test/multipart\r
63 index 53782c6..80d6e88 100755\r
64 --- a/test/multipart\r
65 +++ b/test/multipart\r
66 @@ -589,6 +589,59 @@ Non-text part: text/html\r
67  EOF\r
68  test_expect_equal_file OUTPUT EXPECTED\r
69  \r
70 +test_begin_subtest "'notmuch reply' to a multipart message with json format"\r
71 +test_subtest_known_broken\r
72 +notmuch reply --format=json 'id:87liy5ap00.fsf@yoom.home.cworth.org' | notmuch_json_show_sanitize >OUTPUT\r
73 +cat <<EOF >EXPECTED\r
74 +{"reply-headers": {"Subject": "Re: Multipart message",\r
75 + "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",\r
76 + "To": "Carl Worth <cworth@cworth.org>,\r
77 + cworth@cworth.org",\r
78 + "In-reply-to": "<87liy5ap00.fsf@yoom.home.cworth.org>",\r
79 + "References": " <87liy5ap00.fsf@yoom.home.cworth.org>"},\r
80 + "original": {"id": "XXXXX",\r
81 + "match": false,\r
82 + "excluded": false,\r
83 + "filename": "YYYYY",\r
84 + "timestamp": 978709437,\r
85 + "date_relative": "2001-01-05",\r
86 + "tags": ["attachment","inbox","signed","unread"],\r
87 + "headers": {"Subject": "Multipart message",\r
88 + "From": "Carl Worth <cworth@cworth.org>",\r
89 + "To": "cworth@cworth.org",\r
90 + "Date": "Fri,\r
91 + 05 Jan 2001 15:43:57 +0000"},\r
92 + "body": [{"id": 1,\r
93 + "content-type": "multipart/signed",\r
94 + "content": [{"id": 2,\r
95 + "content-type": "multipart/mixed",\r
96 + "content": [{"id": 3,\r
97 + "content-type": "message/rfc822",\r
98 + "content": [{"headers": {"Subject": "html message",\r
99 + "From": "Carl Worth <cworth@cworth.org>",\r
100 + "To": "cworth@cworth.org",\r
101 + "Date": "Fri,\r
102 + 05 Jan 2001 15:42:57 +0000"},\r
103 + "body": [{"id": 4,\r
104 + "content-type": "multipart/alternative",\r
105 + "content": [{"id": 5,\r
106 + "content-type": "text/html"},\r
107 + {"id": 6,\r
108 + "content-type": "text/plain",\r
109 + "content": "This is an embedded message,\r
110 + with a multipart/alternative part.\n"}]}]}]},\r
111 + {"id": 7,\r
112 + "content-type": "text/plain",\r
113 + "filename": "YYYYY",\r
114 + "content": "This is a text attachment.\n"},\r
115 + {"id": 8,\r
116 + "content-type": "text/plain",\r
117 + "content": "And this message is signed.\n\n-Carl\n"}]},\r
118 + {"id": 9,\r
119 + "content-type": "application/pgp-signature"}]}]}}\r
120 +EOF\r
121 +test_expect_equal_file OUTPUT EXPECTED\r
122 +\r
123  test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"\r
124  notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out\r
125  echo -n -e "\xEF\x0D\x0A" > crlf.expected\r
126 -- \r
127 1.7.5.4\r
128 \r