From: Austin Clements Date: Fri, 16 Aug 2013 15:35:41 +0000 (+2000) Subject: [PATCH v3 1/3] reply: Test replying to messages with RFC 2047-encoded headers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd672980c8180f3503951b0bd436c1c286eff46f;p=notmuch-archives.git [PATCH v3 1/3] reply: Test replying to messages with RFC 2047-encoded headers --- diff --git a/b4/b70cc80144e8131a67428439f927fa7363b8b1 b/b4/b70cc80144e8131a67428439f927fa7363b8b1 new file mode 100644 index 000000000..16399a808 --- /dev/null +++ b/b4/b70cc80144e8131a67428439f927fa7363b8b1 @@ -0,0 +1,150 @@ +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 118BC429E40 + for ; Fri, 16 Aug 2013 08:35:55 -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 qOo-yhVBEfRa for ; + Fri, 16 Aug 2013 08:35:49 -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 65156429E2F + for ; Fri, 16 Aug 2013 08:35:49 -0700 (PDT) +X-AuditID: 12074423-b7f168e00000095a-44-520e46d45499 +Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) + by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP + id 4F.C2.02394.4D64E025; Fri, 16 Aug 2013 11:35:48 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r7GFZkJF022495; + Fri, 16 Aug 2013 11:35:46 -0400 +Received: from drake.dyndns.org + (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [216.15.114.40]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7GFZiEs020143 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Fri, 16 Aug 2013 11:35:45 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1VAM40-0002vY-75; Fri, 16 Aug 2013 11:35:44 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: + [PATCH v3 1/3] reply: Test replying to messages with RFC 2047-encoded headers +Date: Fri, 16 Aug 2013 11:35:41 -0400 +Message-Id: <1376667343-10863-2-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1376667343-10863-1-git-send-email-amdragon@mit.edu> +References: <1376667343-10863-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+NgFuphleLIzCtJLcpLzFFi42IRYrdT0b3ixhdkcO65ucWefV4W12/OZLZ4 + s3IeqwOzx93TXB6Hvy5k8Xi26hZzAHMUl01Kak5mWWqRvl0CV0Z/1zPGgs2CFZ+39rA3ML7l + 6WLk5JAQMJHo3HyQDcIWk7hwbz2QzcUhJLCPUeLSruksEM5GRokZ965BOXeYJDpuNrBDOHOB + yhY/ZAbpZxPQkNi2fzkjiC0iIC2x8+5sVhCbWSBeou3FdnYQW1igTqLr7BqwGhYBVYmFU3eB + 7eYVcJC4cvktC8QdihLdzyaAxTkFHCU+938CiwsB1eyYtxSqXlDi5MwnQHEOoPnqEuvnCUGs + kpdo3jqbeQKj0CwkVbMQqmYhqVrAyLyKUTYlt0o3NzEzpzg1Wbc4OTEvL7VI10wvN7NELzWl + dBMjONBdlHcw/jmodIhRgINRiYeXYSJvkBBrYllxZe4hRkkOJiVR3nmOfEFCfEn5KZUZicUZ + 8UWlOanFhxglOJiVRHi3GgDleFMSK6tSi/JhUtIcLErivM+eng0UEkhPLEnNTk0tSC2Cycpw + cChJ8C50BWoULEpNT61Iy8wpQUgzcXCCDOcBGr4HpIa3uCAxtzgzHSJ/ilFRSpzXGSQhAJLI + KM2D64UloleM4kCvCPOeAqniASYxuO5XQIOZgAZPOsMLMrgkESEl1cBYduhuQGvHlqXLzSbP + ervWbjnHMdGm86F+36od5ebW3ZzapP9pwoMJkWqy61sXsJa9Wfjh62mpt+eUFR6o/Pc8GfWi + 1EpOQXOa9Y9JpQIaCWrBIqamzOtqnr21chNe8FNpd7K76x820Z3+rEvkDG+e/alUce1ocuVb + BnfVudNW3bw3/9iM4P9HlFiKMxINtZiLihMBR3KB8R8DAAA= +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: Fri, 16 Aug 2013 15:35:55 -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 +