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 AAD6C429E25
\r
6 for <notmuch@notmuchmail.org>; Mon, 12 Aug 2013 11:41:07 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 tuMxsWOoBgma for <notmuch@notmuchmail.org>;
\r
16 Mon, 12 Aug 2013 11:41:03 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id ECF3B431FBF
\r
20 for <notmuch@notmuchmail.org>; Mon, 12 Aug 2013 11:40:53 -0700 (PDT)
\r
21 X-AuditID: 12074423-b7f168e00000095a-0a-52092c3576ef
\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])
\r
23 by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id C8.0F.02394.53C29025; Mon, 12 Aug 2013 14:40:53 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
26 by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7CIepiS006039;
\r
27 Mon, 12 Aug 2013 14:40:51 -0400
\r
28 Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7CIemOf003748
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Mon, 12 Aug 2013 14:40:50 -0400
\r
34 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1V8x2u-0005yd-Mo; Mon, 12 Aug 2013 14:40:48 -0400
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
40 [PATCH 4/6] reply: Test replying to messages with RFC 2047-encoded headers
\r
41 Date: Mon, 12 Aug 2013 14:40:37 -0400
\r
42 Message-Id: <1376332839-22825-5-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.10.4
\r
44 In-Reply-To: <1376332839-22825-1-git-send-email-amdragon@mit.edu>
\r
45 References: <1376332839-22825-1-git-send-email-amdragon@mit.edu>
\r
47 Content-Type: text/plain; charset=UTF-8
\r
48 Content-Transfer-Encoding: 8bit
\r
49 X-Brightmail-Tracker:
\r
50 H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsUixG6nrmuqwxlksGejhMX1mzOZHRg9nq26
\r
51 xRzAGMVlk5Kak1mWWqRvl8CVcWHWd/aCTYIVU87vYWtgfMvTxcjJISFgIvFxxXw2CFtM4sK9
\r
52 9UA2F4eQwD5GiWt7TrOCJIQENjJKrHjvDZE4wiQx9WQDVNVcRol3zXeYQKrYBDQktu1fzghi
\r
53 iwhIS+y8Oxuom4ODWUBN4k+XCkhYWKBS4sbJlWBDWQRUJXbsfgLWyivgIDHx9Q4miCsUJbqf
\r
54 TQC7iFPAUeL+8nMsEEc4SGzc1cMIUS8ocXLmExaI8eoS6+cJgYSZBeQlmrfOZp7AKDQLSdUs
\r
55 hKpZSKoWMDKvYpRNya3SzU3MzClOTdYtTk7My0st0jXTy80s0UtNKd3ECA5gF+UdjH8OKh1i
\r
56 FOBgVOLhzfjIESTEmlhWXJl7iFGSg0lJlHeSJmeQEF9SfkplRmJxRnxRaU5q8SFGCQ5mJRHe
\r
57 LaxAOd6UxMqq1KJ8mJQ0B4uSOO+zp2cDhQTSE0tSs1NTC1KLYLIyHBxKErzXtYAaBYtS01Mr
\r
58 0jJzShDSTBycIMN5gIafB6nhLS5IzC3OTIfIn2JUlBLnXQeSEABJZJTmwfXCEswrRnGgV4R5
\r
59 L4NU8QCTE1z3K6DBTECDjZo5QAaXJCKkpBoYReear6v62Lxs5usLPwp+f++c6hmVrid5j99l
\r
60 /osNx6YvKLvnE3VXerNEwrLp+0SWX/qS8d3z08H5F21+/lBg+2yUti1LaHugeO6P776/uR6s
\r
61 0L114sGE48dEdU8YXpJ19llrv+zbzucMVfEpgcoRTi+Dj7y9wOPpq/L0w5YM8dqP3pxFLW2K
\r
62 LUosxRmJhlrMRcWJAH0/WU4LAwAA
\r
63 X-BeenThere: notmuch@notmuchmail.org
\r
64 X-Mailman-Version: 2.1.13
\r
66 List-Id: "Use and development of the notmuch mail system."
\r
67 <notmuch.notmuchmail.org>
\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
71 List-Post: <mailto:notmuch@notmuchmail.org>
\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
75 X-List-Received-Date: Mon, 12 Aug 2013 18:41:07 -0000
\r
78 test/reply | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\r
79 1 file changed, 56 insertions(+)
\r
81 diff --git a/test/reply b/test/reply
\r
82 index ee5d361..a85ebe5 100755
\r
85 @@ -193,4 +193,60 @@ References: <${gen_msg_id}>
\r
86 On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
89 +test_begin_subtest "Reply with RFC 2047-encoded headers"
\r
90 +add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \
\r
91 + '[from]="=?utf-8?q?=e2=98=83?= <snowman@example.com>"' \
\r
92 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
93 + '[body]="Encoding"'
\r
95 +output=$(notmuch reply id:${gen_msg_id})
\r
96 +test_expect_equal "$output" "\
\r
97 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
99 +To: ☃ <snowman@example.com>
\r
100 +In-Reply-To: <${gen_msg_id}>
\r
101 +References: <${gen_msg_id}>
\r
103 +On Tue, 05 Jan 2010 15:43:56 -0000, ☃ <snowman@example.com> wrote:
\r
106 +test_begin_subtest "Reply with RFC 2047-encoded headers (JSON)"
\r
107 +output=$(notmuch reply --format=json id:${gen_msg_id})
\r
108 +test_expect_equal_json "$output" '
\r
113 + "content": "Encoding\n",
\r
114 + "content-type": "text/plain",
\r
118 + "date_relative": "2010-01-05",
\r
119 + "excluded": false,
\r
120 + "filename": "'${MAIL_DIR}'/msg-012",
\r
122 + "Date": "Tue, 05 Jan 2010 15:43:56 +0000",
\r
123 + "From": "\u2603 <snowman@example.com>",
\r
124 + "Subject": "\u00e0\u00df\u00e7",
\r
125 + "To": "Notmuch Test Suite <test_suite@notmuchmail.org>"
\r
127 + "id": "'${gen_msg_id}'",
\r
133 + "timestamp": 1262706236
\r
135 + "reply-headers": {
\r
136 + "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
137 + "In-reply-to": "<'${gen_msg_id}'>",
\r
138 + "References": "<'${gen_msg_id}'>",
\r
139 + "Subject": "Re: \u00e0\u00df\u00e7",
\r
140 + "To": "\u2603 <snowman@example.com>"
\r