From 745cdb318a6d21079ac2e2a4f4c67c5a935c4eb5 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 13 Aug 2013 14:40:37 +2000 Subject: [PATCH] [PATCH 4/6] reply: Test replying to messages with RFC 2047-encoded headers --- e2/da286e1b95b5bd4a0dfa9cefe276181f6798f7 | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 e2/da286e1b95b5bd4a0dfa9cefe276181f6798f7 diff --git a/e2/da286e1b95b5bd4a0dfa9cefe276181f6798f7 b/e2/da286e1b95b5bd4a0dfa9cefe276181f6798f7 new file mode 100644 index 000000000..2f2b40f83 --- /dev/null +++ b/e2/da286e1b95b5bd4a0dfa9cefe276181f6798f7 @@ -0,0 +1,148 @@ +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 AAD6C429E25 + for ; Mon, 12 Aug 2013 11:41:07 -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 tuMxsWOoBgma for ; + Mon, 12 Aug 2013 11:41:03 -0700 (PDT) +Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu + [18.7.68.35]) + by olra.theworths.org (Postfix) with ESMTP id ECF3B431FBF + for ; Mon, 12 Aug 2013 11:40:53 -0700 (PDT) +X-AuditID: 12074423-b7f168e00000095a-0a-52092c3576ef +Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) + by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP + id C8.0F.02394.53C29025; Mon, 12 Aug 2013 14:40:53 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7CIepiS006039; + Mon, 12 Aug 2013 14:40:51 -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 r7CIemOf003748 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Mon, 12 Aug 2013 14:40:50 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1V8x2u-0005yd-Mo; Mon, 12 Aug 2013 14:40:48 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: + [PATCH 4/6] reply: Test replying to messages with RFC 2047-encoded headers +Date: Mon, 12 Aug 2013 14:40:37 -0400 +Message-Id: <1376332839-22825-5-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1376332839-22825-1-git-send-email-amdragon@mit.edu> +References: <1376332839-22825-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+NgFvrBIsWRmVeSWpSXmKPExsUixG6nrmuqwxlksGejhMX1mzOZHRg9nq26 + xRzAGMVlk5Kak1mWWqRvl8CVcWHWd/aCTYIVU87vYWtgfMvTxcjJISFgIvFxxXw2CFtM4sK9 + 9UA2F4eQwD5GiWt7TrOCJIQENjJKrHjvDZE4wiQx9WQDVNVcRol3zXeYQKrYBDQktu1fzghi + iwhIS+y8Oxuom4ODWUBN4k+XCkhYWKBS4sbJlWBDWQRUJXbsfgLWyivgIDHx9Q4miCsUJbqf + TQC7iFPAUeL+8nMsEEc4SGzc1cMIUS8ocXLmExaI8eoS6+cJgYSZBeQlmrfOZp7AKDQLSdUs + hKpZSKoWMDKvYpRNya3SzU3MzClOTdYtTk7My0st0jXTy80s0UtNKd3ECA5gF+UdjH8OKh1i + FOBgVOLhzfjIESTEmlhWXJl7iFGSg0lJlHeSJmeQEF9SfkplRmJxRnxRaU5q8SFGCQ5mJRHe + LaxAOd6UxMqq1KJ8mJQ0B4uSOO+zp2cDhQTSE0tSs1NTC1KLYLIyHBxKErzXtYAaBYtS01Mr + 0jJzShDSTBycIMN5gIafB6nhLS5IzC3OTIfIn2JUlBLnXQeSEABJZJTmwfXCEswrRnGgV4R5 + L4NU8QCTE1z3K6DBTECDjZo5QAaXJCKkpBoYReear6v62Lxs5usLPwp+f++c6hmVrid5j99l + /osNx6YvKLvnE3VXerNEwrLp+0SWX/qS8d3z08H5F21+/lBg+2yUti1LaHugeO6P776/uR6s + 0L114sGE48dEdU8YXpJ19llrv+zbzucMVfEpgcoRTi+Dj7y9wOPpq/L0w5YM8dqP3pxFLW2K + LUosxRmJhlrMRcWJAH0/WU4LAwAA +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: Mon, 12 Aug 2013 18:41:07 -0000 + +--- + 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" + ++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 + -- 2.26.2