]> git.notmuchmail.org Git - notmuch/blobdiff - test/T357-index-decryption.sh
cli/reply: use decryption policy "auto" by default.
[notmuch] / test / T357-index-decryption.sh
index 7996ec67d07de396a4868292ed239f5aabe294ab..31991e22be98e158cc8d5ac73f6a12832cf96b9a 100755 (executable)
@@ -200,6 +200,16 @@ test_expect_equal \
     "$output" \
     "$expected"
 
+test_begin_subtest "notmuch reply should show cleartext if session key is present"
+output=$(notmuch reply id:simple-encrypted@crypto.notmuchmail.org | grep '^>')
+expected='> This is a top sekrit message.'
+if [ $NOTMUCH_HAVE_GMIME_SESSION_KEYS -eq 0 ]; then
+    test_subtest_known_broken
+fi
+test_expect_equal \
+    "$output" \
+    "$expected"
+
 
 # TODO: test removal of a message from the message store between
 # indexing and reindexing.