]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch-test: Test "notmuch reply" with multiple recipients
authorCarl Worth <cworth@cworth.org>
Thu, 4 Feb 2010 20:03:30 +0000 (12:03 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 4 Feb 2010 20:10:43 +0000 (12:10 -0800)
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

index e24ccb5a8d149bc7675e1c25a73df65d2df1b723..0488b67a51ee02abbbcd47fa1926c630fd170d03 100755 (executable)
@@ -320,6 +320,24 @@ References:  <${gen_msg_id}>
 On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
 > basic reply test"
 
 On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
 > basic reply test"
 
+printf " Multiple recipients...\t\t"
+generate_message '[from]="Sender <sender@example.com>"' \
+                 '[to]="test_suite@notmuchmail.org, Someone Else <someone@example.com>"' \
+                 [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 <test_suite@notmuchmail.org>
+Subject: Re: notmuch-reply-test
+To: Sender <sender@example.com>, Someone Else <someone@example.com>
+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 <sender@example.com> wrote:
+> Multiple recipients"
+
 printf " Reply with CC...\t\t"
 generate_message '[from]="Sender <sender@example.com>"' \
                  [to]=test_suite@notmuchmail.org \
 printf " Reply with CC...\t\t"
 generate_message '[from]="Sender <sender@example.com>"' \
                  [to]=test_suite@notmuchmail.org \