--- test/multipart | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/multipart b/test/multipart index f83526b..f5ebf04 100755 --- a/test/multipart +++ b/test/multipart @@ -589,6 +589,13 @@ Non-text part: text/html EOF test_expect_equal_file OUTPUT EXPECTED +test_begin_subtest "'notmuch reply' to a multipart message with json format" +notmuch reply --format=json 'id:87liy5ap00....@yoom.home.cworth.org' >OUTPUT +cat <<EOF >EXPECTED +[{ "reply": { "headers": { "from": "Notmuch Test Suite <test_su...@notmuchmail.org>", "to": "Carl Worth <cwo...@cworth.org>, cwo...@cworth.org", "subject": "Re: Multipart message", "in-reply-to": "<87liy5ap00....@yoom.home.cworth.org>", "references": " <87liy5ap00....@yoom.home.cworth.org>"} }, "original": { "headers": { "from": "Carl Worth <cwo...@cworth.org>", "to": "cwo...@cworth.org", "cc": "", "subject": "Multipart message", "date": "Fri, 05 Jan 2001 15:43:57 +0000", "in-reply-to": "", "references": "" }, "body": [ { "content-type": "text/html", "content": "<p>This is an embedded message, with a multipart/alternative part.</p>\n"}, { "content-type": "text/plain", "content": "This is an embedded message, with a multipart/alternative part.\n"}, { "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}, {} ] } }, {} ] +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 notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch