X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT357-index-decryption.sh;h=9f46a01b22c9530925f7bd844acb429e5c2ad6c7;hp=bd2134156c0e928802b688780fe53f703e9b36a4;hb=6a9626a2fdddf6115bcf97982fd10053bf48e942;hpb=076f86025d519522cde5787def6c03fc308e8ebc diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh index bd213415..9f46a01b 100755 --- a/test/T357-index-decryption.sh +++ b/test/T357-index-decryption.sh @@ -227,6 +227,23 @@ test_expect_equal \ "$output" \ "$expected" +test_begin_subtest "purging stashed session keys should lose access to the cleartext" +notmuch reindex --decrypt=false id:simple-encrypted@crypto.notmuchmail.org +output=$(notmuch search sekrit) +expected='' +test_expect_equal \ + "$output" \ + "$expected" + +test_begin_subtest "and cleartext should be unrecoverable now that there are no stashed session keys" +notmuch dump +notmuch reindex --decrypt=true id:simple-encrypted@crypto.notmuchmail.org +output=$(notmuch search sekrit) +expected='' +test_expect_equal \ + "$output" \ + "$expected" + # TODO: test removal of a message from the message store between # indexing and reindexing.