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:[email protected]' >OUTPUT +cat <<EOF >EXPECTED +From: Notmuch Test Suite <[email protected]> +Subject: Re: Multipart message +To: Carl Worth <[email protected]>, [email protected] +In-Reply-To: <[email protected]> +References: <[email protected]> + +On Fri, 05 Jan 2001 15:43:57 +0000, Carl Worth <[email protected]> wrote: +> From: Carl Worth <[email protected]> +> To: [email protected] +> 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 _______________________________________________ notmuch mailing list [email protected] http://notmuchmail.org/mailman/listinfo/notmuch
