3 test_description="emacs interface"
4 . $(dirname "$0")/test-lib.sh || exit 1
6 # testing protected headers with emacs
8 add_email_corpus protected-headers
10 test_begin_subtest "notmuch-search should show not unindexed protected subject header in emacs"
11 test_emacs '(notmuch-search "id:protected-header@crypto.notmuchmail.org")
15 2000-01-01 [1/1] test_suite@notmuchmail.org Subject Unavailable (encrypted inbox unread)
16 End of search results.
18 test_expect_equal_file EXPECTED OUTPUT
20 # protected headers should behave differently after re-indexing
21 test_begin_subtest 'defaulting to indexing cleartext'
22 test_expect_success 'notmuch config set index.decrypt true'
23 test_begin_subtest 'try reindexing protected header message'
24 test_expect_success 'notmuch reindex id:protected-header@crypto.notmuchmail.org'
26 test_begin_subtest "notmuch-search should show indexed protected subject header in emacs"
27 test_emacs '(notmuch-search "id:protected-header@crypto.notmuchmail.org")
31 2000-01-01 [1/1] test_suite@notmuchmail.org This is a protected header (encrypted inbox unread)
32 End of search results.
34 test_expect_equal_file EXPECTED OUTPUT