[RFC PATCH 1/3] test: replies that quote HTML parts (expected to fail)

Subject: [RFC PATCH 1/3] test: replies that quote HTML parts (expected to fail)

Date: Wed, 30 Nov 2011 09:40:39 -0700

To: notmuch@notmuchmail.org, awg@xvx.ca

Cc:

From: Adam Wolfe Gordon


Test `notmuch reply` with the new --format=html flag, indicating that HTML parts
should be quoted in the reply.
---
 test/multipart |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/test/multipart b/test/multipart
index f83526b..d5ca7fd 100755
--- a/test/multipart
+++ b/test/multipart
@@ -589,6 +589,30 @@ Non-text part: text/html
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "'notmuch reply' to a multipart message with --format=html"
+notmuch reply --format=html 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+Subject: Re: Multipart message
+To: Carl Worth <cworth@cworth.org>, cworth@cworth.org
+In-Reply-To: <87liy5ap00.fsf@yoom.home.cworth.org>
+References: <87liy5ap00.fsf@yoom.home.cworth.org>
+
+On Fri, 05 Jan 2001 15:43:57 +0000, Carl Worth <cworth@cworth.org> wrote:
+> From: Carl Worth <cworth@cworth.org>
+> To: cworth@cworth.org
+> Subject: html message
+> Date: Fri, 05 Jan 2001 15:42:57 +0000
+>
+> <p>This is an embedded message, with a multipart/alternative part.</p>
+> This is an embedded message, with a multipart/alternative part.
+> This is a text attachment.
+> And this message is signed.
+> 
+> -Carl
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"
 notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out
 echo -n -e "\xEF\x0D\x0A" > crlf.expected
-- 
1.7.5.4


Thread: