mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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:
parent
e19954fa18
commit
9c0001de4b
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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 ]
|
Loading…
Reference in a new issue