From 7cd54ed1b47dd3eeba3e1049aa25992f4949c049 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 14 Aug 2013 12:13:57 +2000 Subject: [PATCH] Re: [PATCH 4/6] reply: Test replying to messages with RFC 2047-encoded headers --- 9a/f3e3dba165c4f0fb13f4c1293ba99b671121f9 | 158 ++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 9a/f3e3dba165c4f0fb13f4c1293ba99b671121f9 diff --git a/9a/f3e3dba165c4f0fb13f4c1293ba99b671121f9 b/9a/f3e3dba165c4f0fb13f4c1293ba99b671121f9 new file mode 100644 index 000000000..c9dff3335 --- /dev/null +++ b/9a/f3e3dba165c4f0fb13f4c1293ba99b671121f9 @@ -0,0 +1,158 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 05093431FBF + for ; Tue, 13 Aug 2013 09:14:12 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ojuQ2QBy2Hvb for ; + Tue, 13 Aug 2013 09:14:06 -0700 (PDT) +Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu + [18.7.68.34]) + by olra.theworths.org (Postfix) with ESMTP id 55760431FAF + for ; Tue, 13 Aug 2013 09:14:06 -0700 (PDT) +X-AuditID: 12074422-b7ef78e000000935-9a-520a5b4df2d1 +Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) + by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP + id 15.E8.02357.D4B5A025; Tue, 13 Aug 2013 12:14:05 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r7DGE4Dt022990 + for ; Tue, 13 Aug 2013 12:14:05 -0400 +Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) + (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7DGE1DW021275 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) + for ; Tue, 13 Aug 2013 12:14:04 -0400 +Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) + (envelope-from ) id 1V9HEN-0006Fr-FE + for notmuch@notmuchmail.org; Tue, 13 Aug 2013 12:13:59 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: Re: [PATCH 4/6] reply: Test replying to messages with RFC + 2047-encoded headers +In-Reply-To: <1376332839-22825-5-git-send-email-amdragon@mit.edu> +References: <1376332839-22825-1-git-send-email-amdragon@mit.edu> + <1376332839-22825-5-git-send-email-amdragon@mit.edu> +User-Agent: Notmuch/0.15.2+182~gd0bd88f (http://notmuchmail.org) Emacs/23.4.1 + (i486-pc-linux-gnu) +Date: Tue, 13 Aug 2013 12:13:57 -0400 +Message-ID: <87ioz9wou2.fsf@awakening.csail.mit.edu> +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsUixCmqrOsbzRVksPS8kcX1mzOZHRg9nq26 + xRzAGMVlk5Kak1mWWqRvl8CV0fnsCWPBIdGK20d3szYwfuHvYuTkkBAwkZhx9y0LhC0mceHe + erYuRi4OIYF9jBKNDy8xQzjnGSV2X30O5bxkkpjT8ZoVwjnEKNF35Q5YP5uAhsS2/csZQWwR + AWmJnXdns4LYwgLhEnOuNrOD2JwCjhJNB8+C2UICpRJtjw6D1YsKJEpMWtDJDGKzCKhKPJ++ + E6yGF+i+df/XskHYghInZz4B28UsoC7xZ94lZghbW2LZwtfMExgFZyEpm4WkbBaSsgWMzKsY + ZVNyq3RzEzNzilOTdYuTE/PyUot0TfVyM0v0UlNKNzGCApbdRWkH48+DSocYBTgYlXh4H1hz + BQmxJpYVV+YeYpTkYFIS5b0SDhTiS8pPqcxILM6ILyrNSS0GhggHs5II71cboBxvSmJlVWpR + PkxKmoNFSZz32dOzgUIC6YklqdmpqQWpRTBZGQ4OJQne+iigRsGi1PTUirTMnBKENBMHJ8hw + HqDhrSA1vMUFibnFmekQ+VOMilLivIsigRICIImM0jy4XlhCecUoDvSKMK8CSDsPMBnBdb8C + GswENNiomQNkcEkiQkqqgZF157QH30/VnfXeqsH5RrDXoVfw4++Q4r8XVrVOP30useJQw1MJ + 3vziJc/fF82rLD7jtT28JnCBz7HX2Y8WmKe+PCjpZtBc+3XBohkTdjc4aGu4rVLcaNm+RvR2 + m9DxrFz7WdlqF9Z2tP+/XK1scbC3QXPVkTV7Dcps9gRUHX9stKDV9X7j20AlluKMREMt5qLi + RAAyCQbxAwMAAA== +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 13 Aug 2013 16:14:12 -0000 + +On Mon, 12 Aug 2013, Austin Clements wrote: +> --- +> test/reply | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++ +> 1 file changed, 56 insertions(+) +> +> diff --git a/test/reply b/test/reply +> index ee5d361..a85ebe5 100755 +> --- a/test/reply +> +++ b/test/reply +> @@ -193,4 +193,60 @@ References: <${gen_msg_id}> +> On Tue, 05 Jan 2010 15:43:56 -0000, Sender wrote: +> > From guessing" +>=20=20 +> +test_begin_subtest "Reply with RFC 2047-encoded headers" +> +add_message '[subject]=3D"=3D?iso-8859-1?q?=3De0=3Ddf=3De7?=3D"' \ +> + '[from]=3D"=3D?utf-8?q?=3De2=3D98=3D83?=3D "' \ +> + '[date]=3D"Tue, 05 Jan 2010 15:43:56 -0000"' \ +> + '[body]=3D"Encoding"' +> + +> +output=3D$(notmuch reply id:${gen_msg_id}) +> +test_expect_equal "$output" "\ +> +From: Notmuch Test Suite +> +Subject: Re: =C3=A0=C3=9F=C3=A7 +> +To: =E2=98=83 +> +In-Reply-To: <${gen_msg_id}> +> +References: <${gen_msg_id}> +> + +> +On Tue, 05 Jan 2010 15:43:56 -0000, =E2=98=83 wrot= +e: +> +> Encoding" +> + +> +test_begin_subtest "Reply with RFC 2047-encoded headers (JSON)" +> +output=3D$(notmuch reply --format=3Djson id:${gen_msg_id}) +> +test_expect_equal_json "$output" ' +> +{ +> + "original": { +> + "body": [ +> + { +> + "content": "Encoding\n", +> + "content-type": "text/plain", +> + "id": 1 +> + } +> + ], +> + "date_relative": "2010-01-05", +> + "excluded": false, +> + "filename": "'${MAIL_DIR}'/msg-012", +> + "headers": { +> + "Date": "Tue, 05 Jan 2010 15:43:56 +0000", +> + "From": "\u2603 ", +> + "Subject": "\u00e0\u00df\u00e7", +> + "To": "Notmuch Test Suite " +> + }, +> + "id": "'${gen_msg_id}'", +> + "match": false, +> + "tags": [ +> + "inbox", +> + "unread" +> + ], +> + "timestamp": 1262706236 +> + }, +> + "reply-headers": { +> + "From": "Notmuch Test Suite ", +> + "In-reply-to": "<'${gen_msg_id}'>", +> + "References": "<'${gen_msg_id}'>", + +I screwed up when I was rebasing patches in this series. There's +supposed to be a space before the < above, which should then be removed +in patch 5. If people take a look over this series, I'll fix this along +with the commit message typo in v2. + +> + "Subject": "Re: \u00e0\u00df\u00e7", +> + "To": "\u2603 " +> + } +> +}' +> + +> + +> test_done +> --=20 +> 1.7.10.4 -- 2.26.2