diff options
author | Carl Worth <cworth@cworth.org> | 2010-02-04 11:39:31 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-02-04 12:10:43 -0800 |
commit | 33f55e43e18badc85d2462407d43705afa0e2035 (patch) | |
tree | f85ef01160634e87b969997d786102fde049da01 /test | |
parent | 4e66b777cf819bc404ca08ad9d6ec26e00c52760 (diff) |
notmuch-test: Test "notmuch reply" from alternate address.
When reply to a message addresses to an address configured in the
other_email setting in the configuration file, the reply should use
that address in the From header. Test this.
Diffstat (limited to 'test')
-rwxr-xr-x | test/notmuch-test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/notmuch-test b/test/notmuch-test index 835545a..a771f47 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -163,6 +163,7 @@ path=${MAIL_DIR} [user] name=Notmuch Test Suite primary_email=test_suite@notmuchmail.org +other_email=test_suite_other@notmuchmail.org EOF printf "Testing \"notmuch new\" in several variations:\n" @@ -313,6 +314,24 @@ References: <${gen_msg_id}> On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote: > notmuch-reply-test" +printf " Reply from alternate address...\t" +generate_message '[from]="Sender <sender@example.com>"' \ + [to]=test_suite_other@notmuchmail.org \ + [subject]=notmuch-reply-test \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0800"' \ + [body]=notmuch-reply-test + +$NOTMUCH new > /dev/null +execute_expecting "reply id:${gen_msg_id}" "From: Notmuch Test Suite <test_suite_other@notmuchmail.org> +Subject: Re: notmuch-reply-test +To: Sender <sender@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: +> notmuch-reply-test" + cat <<EOF Notmuch test suite complete. |