---
 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:[email protected]' >OUTPUT
+cat <<EOF >EXPECTED
+[{ "reply": { "headers": { "from": "Notmuch Test Suite 
<[email protected]>", "to": "Carl Worth <[email protected]>, 
[email protected]", "subject": "Re: Multipart message", "in-reply-to": 
"<[email protected]>", "references": " 
<[email protected]>"} }, "original": { "headers": { "from": 
"Carl Worth <[email protected]>", "to": "[email protected]", "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
[email protected]
http://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to