From bcba87a3e25ea2b6deb92d0ebbdf4bf1866dba97 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 4 Feb 2010 12:03:30 -0800 Subject: [PATCH 1/1] notmuch-test: Test "notmuch reply" with multiple recipients The feature tested here is that we reply to both the sender and to others addresses on the To: line of the original message, but that we don't reply to our own address. --- test/notmuch-test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/notmuch-test b/test/notmuch-test index e24ccb5a..0488b67a 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -320,6 +320,24 @@ References: <${gen_msg_id}> On Tue, 05 Jan 2010 15:43:56 -0800, Sender wrote: > basic reply test" +printf " Multiple recipients...\t\t" +generate_message '[from]="Sender "' \ + '[to]="test_suite@notmuchmail.org, Someone Else "' \ + [subject]=notmuch-reply-test \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0800"' \ + '[body]="Multiple recipients"' + +$NOTMUCH new > /dev/null +execute_expecting "reply id:${gen_msg_id}" "From: Notmuch Test Suite +Subject: Re: notmuch-reply-test +To: Sender , Someone Else +Bcc: test_suite@notmuchmail.org +In-Reply-To: <${gen_msg_id}> +References: <${gen_msg_id}> + +On Tue, 05 Jan 2010 15:43:56 -0800, Sender wrote: +> Multiple recipients" + printf " Reply with CC...\t\t" generate_message '[from]="Sender "' \ [to]=test_suite@notmuchmail.org \ -- 2.43.0