test: show what emacs sees of an encrypted message when crypto is disabled

Some users may set notmuch-crypto-process-mime to nil, disabling all
crypto use.  We should have a baseline for what that looks like.
This commit is contained in:
Daniel Kahn Gillmor 2019-04-22 13:18:13 -04:00 committed by David Bremner
parent e19954fa18
commit 9c0001de4b
2 changed files with 16 additions and 0 deletions

View file

@ -223,4 +223,10 @@ test_emacs '(notmuch-show "id:simple-encrypted@crypto.notmuchmail.org")
(test-visible-output)' (test-visible-output)'
test_expect_equal_file $EXPECTED/notmuch-show-undecryptable-message OUTPUT test_expect_equal_file $EXPECTED/notmuch-show-undecryptable-message OUTPUT
test_begin_subtest "show encrypted message when not processing crypto"
test_emacs '(let ((notmuch-crypto-process-mime nil))
(notmuch-show "id:basic-encrypted@crypto.notmuchmail.org")
(test-visible-output))'
test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message-no-crypto OUTPUT
test_done test_done

View file

@ -0,0 +1,10 @@
test_suite@notmuchmail.org (2000-01-01) (encrypted inbox)
Subject: Here is the password
To: test_suite@notmuchmail.org
Date: Sat, 01 Jan 2000 12:00:00 +0000
[ multipart/encrypted ]
[ Unknown encryption status ]
[ Unknown signature status ]
[ application/pgp-encrypted ]
[ application/octet-stream ]