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

Adam Wolfe Gordon awg+notmuch at xvx.ca
Wed Nov 30 08:40:39 PST 2011


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 at yoom.home.cworth.org' >OUTPUT
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite at notmuchmail.org>
+Subject: Re: Multipart message
+To: Carl Worth <cworth at cworth.org>, cworth at cworth.org
+In-Reply-To: <87liy5ap00.fsf at yoom.home.cworth.org>
+References: <87liy5ap00.fsf at yoom.home.cworth.org>
+
+On Fri, 05 Jan 2001 15:43:57 +0000, Carl Worth <cworth at cworth.org> wrote:
+> From: Carl Worth <cworth at cworth.org>
+> To: cworth at 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



More information about the notmuch mailing list