mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
7123e63b00
commit
1aae106be5
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue