From: Austin Clements Date: Thu, 15 Aug 2013 17:27:36 +0000 (+2000) Subject: [PATCH v2 1/3] reply: Test replying to messages with RFC 2047-encoded headers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75e32b140885751f84daa155bf677f38daf32cd1;p=notmuch-archives.git [PATCH v2 1/3] reply: Test replying to messages with RFC 2047-encoded headers --- diff --git a/9d/9d2ad45628e3cd54d1064bfe3893946058e517 b/9d/9d2ad45628e3cd54d1064bfe3893946058e517 new file mode 100644 index 000000000..f88caa505 --- /dev/null +++ b/9d/9d2ad45628e3cd54d1064bfe3893946058e517 @@ -0,0 +1,149 @@ +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 596C8429E2E + for ; Thu, 15 Aug 2013 10:27:56 -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 HNHXxwQLv4Fv for ; + Thu, 15 Aug 2013 10:27:51 -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 B1BC2431FD4 + for ; Thu, 15 Aug 2013 10:27:47 -0700 (PDT) +X-AuditID: 12074422-b7ef78e000000935-0b-520d0f924aa4 +Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) + by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP + id D1.DC.02357.29F0D025; Thu, 15 Aug 2013 13:27:47 -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 r7FHRgqB004362; + Thu, 15 Aug 2013 13:27:42 -0400 +Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172]) + (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7FHRe9E009073 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Thu, 15 Aug 2013 13:27:41 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1VA1Kl-00053b-V5; Thu, 15 Aug 2013 13:27:39 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: + [PATCH v2 1/3] reply: Test replying to messages with RFC 2047-encoded headers +Date: Thu, 15 Aug 2013 13:27:36 -0400 +Message-Id: <1376587658-19202-2-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1376587658-19202-1-git-send-email-amdragon@mit.edu> +References: <1376587658-19202-1-git-send-email-amdragon@mit.edu> +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42IR4hRV1p3MzxtkMLuP1eL6zZnMFm9WzmN1 + YPI4/HUhi8ezVbeYA5iiuGxSUnMyy1KL9O0SuDL6u54xFmwWrPi8tYe9gfEtTxcjJ4eEgInE + 8bXTWSFsMYkL99azgdhCAvsYJd70pHUxcgHZGxkl1k1bwQzhHGGSODJ/GhuEM5dR4vvTkywg + LWwCGhLb9i9nBLFFBKQldt6dDTaWWcBK4vDVTWC2sECdxN3f3UA1HBwsAqoSt15LgYR5BRwk + Hux8zQJxhaJE97MJYFdwCjhKrJxwjxHiIgeJ/QvPsEHUC0qcnPmEBWQMs4C6xPp5QhCb5CWa + t85mnsAoNAtJ1SyEqllIqhYwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3SNdXLzSzRS00p3cQI + Cmp2F6UdjD8PKh1iFOBgVOLhjWjjDhJiTSwrrsw9xCjJwaQkyruPjzdIiC8pP6UyI7E4I76o + NCe1+BCjBAezkgjv13s8QUK8KYmVValF+TApaQ4WJXHeZ0/PBgoJpCeWpGanphakFsFkZTg4 + lCR4j4EMFSxKTU+tSMvMKUFIM3FwggznARp+E6SGt7ggMbc4Mx0if4pRUUqcdxlIQgAkkVGa + B9cLSzqvGMWBXhHm3QpSxQNMWHDdr4AGMwENdsjmAhlckoiQkmpgnFPp/ynTsrGHS8702Xmj + oKO7usQyp+xQ2jvh4vVtk60bXZ+aM/9gdPKbHBEfUvJyWYncXibfyLNvE/iT5zu16UcadSfe + 9QpZcvn2ucObOuYteDY7sH6ubMKEsOY/4XU/fsvE7p5/bX6f04zEg74rBOfGrqk/XXaIteLz + TA2Bli7Z7tn//Y9LKrEUZyQaajEXFScCACxap98VAwAA +Cc: tomi.ollila@iki.fi +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: Thu, 15 Aug 2013 17:27:56 -0000 + +--- + test/reply | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 56 insertions(+) + +diff --git a/test/reply b/test/reply +index ee5d361..c877ffe 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" + ++test_begin_subtest "Reply with RFC 2047-encoded headers" ++add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \ ++ '[from]="=?utf-8?q?=e2=98=83?= "' \ ++ '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \ ++ '[body]="Encoding"' ++ ++output=$(notmuch reply id:${gen_msg_id}) ++test_expect_equal "$output" "\ ++From: Notmuch Test Suite ++Subject: Re: àßç ++To: ☃ ++In-Reply-To: <${gen_msg_id}> ++References: <${gen_msg_id}> ++ ++On Tue, 05 Jan 2010 15:43:56 -0000, ☃ wrote: ++> Encoding" ++ ++test_begin_subtest "Reply with RFC 2047-encoded headers (JSON)" ++output=$(notmuch reply --format=json 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}'>", ++ "Subject": "Re: \u00e0\u00df\u00e7", ++ "To": "\u2603 " ++ } ++}' ++ ++ + test_done +-- +1.7.10.4 +