aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/emacs
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-27 17:08:09 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-27 17:08:09 -0700
commit1aae106be5576fb75c2813bef04486f40de07d52 (patch)
tree44c162f0c35975025471880ddcadf6bb6fce6505 /test/emacs
parent7123e63b00c2e47c70c07967c98fa1d97a1c5870 (diff)
test: Add test for fully-roundtripped FCC
We test that the message we sent via (fake) SMTP is included in the mail index after a "notmuch new". This verifies that the FCC setting indeed successfully saved the sent message within the notmuch mail store.
Diffstat (limited to 'test/emacs')
-rwxr-xr-xtest/emacs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
index 6fab3003..80b1024f 100755
--- a/test/emacs
+++ b/test/emacs
@@ -82,4 +82,9 @@ Content-Type: text/plain; charset=us-ascii
This is a test that messages are sent via SMTP"
+test_begin_subtest "Verify that sent messages are saved/searchable (via FCC)"
+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_done