[RFC PATCH 1/3] test: replies that quote HTML parts (expected to fail)
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Wed, 30 Nov 2011 16:40:39 +0000 (09:40 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:31 +0000 (09:40 -0800)
e1/e59a2822a8435e0b0a4e07afc0b53415fd781d [new file with mode: 0644]

diff --git a/e1/e59a2822a8435e0b0a4e07afc0b53415fd781d b/e1/e59a2822a8435e0b0a4e07afc0b53415fd781d
new file mode 100644 (file)
index 0000000..3f9ddd4
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <awg@lagos.xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1062C429E33\r
+       for <notmuch@notmuchmail.org>; Wed, 30 Nov 2011 08:50:21 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id hQEswy20HVbD for <notmuch@notmuchmail.org>;\r
+       Wed, 30 Nov 2011 08:50:20 -0800 (PST)\r
+X-Greylist: delayed 573 seconds by postgrey-1.32 at olra;\r
+       Wed, 30 Nov 2011 08:50:16 PST\r
+Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])\r
+       by olra.theworths.org (Postfix) with ESMTP id 93C3B429E29\r
+       for <notmuch@notmuchmail.org>; Wed, 30 Nov 2011 08:50:16 -0800 (PST)\r
+Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd5ml2no-ssvc.prod.shaw.ca)\r
+       ([10.0.144.222])\r
+       by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 30 Nov 2011 09:40:42 -0700\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=1i/nnIW0nMC5uWcUJ59KMVUkrnWI9M+zreV2y9Ww/qI=\r
+       c=1 sm=1\r
+       a=rbG03NJbsYoA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+       a=bz-zy3QpAAAA:8 a=7343-z1_AAAA:8 a=BhPc4uvcyHYrlrQRSrcA:9\r
+       a=NFWI-YhVVZsA:10 a=0c-eHkXYtrgA:10 a=pIMJlJgVeHwA:10\r
+       a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+       by pd5ml2no-dmz.prod.shaw.ca with ESMTP; 30 Nov 2011 09:40:42 -0700\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+       id B7E4E8000661; Wed, 30 Nov 2011 09:40:41 -0700 (MST)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org,\r
+       awg@xvx.ca\r
+Subject: [RFC PATCH 1/3] test: replies that quote HTML parts (expected to\r
+ fail)\r
+Date: Wed, 30 Nov 2011 09:40:39 -0700\r
+Message-Id: <1322671241-23438-2-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1322671241-23438-1-git-send-email-awg+notmuch@xvx.ca>\r
+References: <1322671241-23438-1-git-send-email-awg+notmuch@xvx.ca>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 30 Nov 2011 16:50:21 -0000\r
+\r
+Test `notmuch reply` with the new --format=html flag, indicating that HTML parts\r
+should be quoted in the reply.\r
+---\r
+ test/multipart |   24 ++++++++++++++++++++++++\r
+ 1 files changed, 24 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/multipart b/test/multipart\r
+index f83526b..d5ca7fd 100755\r
+--- a/test/multipart\r
++++ b/test/multipart\r
+@@ -589,6 +589,30 @@ Non-text part: text/html\r
+ EOF\r
+ test_expect_equal_file OUTPUT EXPECTED\r
\r
++test_begin_subtest "'notmuch reply' to a multipart message with --format=html"\r
++notmuch reply --format=html 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT\r
++cat <<EOF >EXPECTED\r
++From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
++Subject: Re: Multipart message\r
++To: Carl Worth <cworth@cworth.org>, cworth@cworth.org\r
++In-Reply-To: <87liy5ap00.fsf@yoom.home.cworth.org>\r
++References: <87liy5ap00.fsf@yoom.home.cworth.org>\r
++\r
++On Fri, 05 Jan 2001 15:43:57 +0000, Carl Worth <cworth@cworth.org> wrote:\r
++> From: Carl Worth <cworth@cworth.org>\r
++> To: cworth@cworth.org\r
++> Subject: html message\r
++> Date: Fri, 05 Jan 2001 15:42:57 +0000\r
++>\r
++> <p>This is an embedded message, with a multipart/alternative part.</p>\r
++> This is an embedded message, with a multipart/alternative part.\r
++> This is a text attachment.\r
++> And this message is signed.\r
++> \r
++> -Carl\r
++EOF\r
++test_expect_equal_file OUTPUT EXPECTED\r
++\r
+ test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"\r
+ notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out\r
+ echo -n -e "\xEF\x0D\x0A" > crlf.expected\r
+-- \r
+1.7.5.4\r
+\r