---
 test/multipart |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/test/multipart b/test/multipart
index 2dd73f5..7cff74a 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": { "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": { "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": "", "message-id": "[email protected]" } }
+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