diff options
author | Carl Worth <cworth@cworth.org> | 2010-10-27 18:43:09 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-10-27 18:43:09 -0700 |
commit | 76f1c84e6f8caf8768e2bd10a4db2954703b19b9 (patch) | |
tree | 9adf1193d3c4e325598accc3ca8c473ab21c7a2e /test | |
parent | c6e70e15eaf7355fb9fe9b599aef07f2be619968 (diff) |
test: Add test for reply functionality within emacs.
The reply is primarily taken care of by "notmuch reply" which is already
thoroughly tested. But a recent bug is inserting a duplicate From header
in the emacs-based reply. So exercise that bug here.
Diffstat (limited to 'test')
-rwxr-xr-x | test/emacs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -87,4 +87,15 @@ notmuch new > /dev/null output=$(notmuch search 'subject:"testing message sent via SMTP"' | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 1974-03-29 [1/1] Notmuch Test Suite; Testing message sent via SMTP (inbox unread)" +test_begin_subtest "Reply within emacs" +output=$(test_emacs '(notmuch-search "subject:\"testing message sent via SMTP\"") (notmuch-test-wait) (notmuch-search-reply-to-thread) (message (buffer-string))' 2>&1 | sed -e 's/^In-Reply-To: <.*>$/In-Reply-To: <XXX>/') +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org> +To: user@example.com +Subject: Re: Testing message sent via SMTP +In-Reply-To: <XXX> +Fcc: $(pwd)/mail/sent +--text follows this line-- +On Fri, 29 Mar 1974 10:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote: +> This is a test that messages are sent via SMTP" + test_done |