X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT220-reply.sh;h=17741e0d7a85db77ca35e686f612d5e0ee6e99b4;hp=b0d854a1fc000a3a3b85089eb7c4ea5d6ab538cf;hb=14c60cf168ac3b0f277188c16e6012b7ebdadde7;hpb=a755c9d6a9099366cc82ba3a4bee8e6d2b83d529 diff --git a/test/T220-reply.sh b/test/T220-reply.sh index b0d854a1..17741e0d 100755 --- a/test/T220-reply.sh +++ b/test/T220-reply.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description="\"notmuch reply\" in several variations" -. ./test-lib.sh +. ./test-lib.sh || exit 1 test_begin_subtest "Basic reply" add_message '[from]="Sender "' \ @@ -229,7 +229,7 @@ test_expect_equal_json "$output" ' ], "date_relative": "2010-01-05", "excluded": false, - "filename": "'${MAIL_DIR}'/msg-012", + "filename": ["'${MAIL_DIR}'/msg-012"], "headers": { "Date": "Tue, 05 Jan 2010 15:43:56 +0000", "From": "\u2603 ", @@ -253,5 +253,17 @@ test_expect_equal_json "$output" ' } }' +test_begin_subtest "Reply to a message with multiple Cc headers" +add_email_corpus broken +output=$(notmuch reply id:multiple-cc@example.org) +test_expect_equal "$output" "From: Notmuch Test Suite +Subject: Re: wowsers! +To: Alice , Daniel +Cc: Bob , Charles +In-Reply-To: +References: + +On Thu, 16 Jun 2016 22:14:41 -0400, Alice wrote: +> Note the Cc: and cc: headers." test_done