crypto: Test restore of cleartext index from stashed session keys
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 30 Nov 2017 08:59:31 +0000 (03:59 -0500)
committerDavid Bremner <david@tethera.net>
Tue, 5 Dec 2017 01:53:05 +0000 (21:53 -0400)
commit6d7249fec909b4dbb43e0a7833d30edee839bff1
tree743f71f87826d7240ee31bfed2327a23cbe3b827
parent836ec85b0cb7deaef11028d68d3e6a9be7a1e200
crypto: Test restore of cleartext index from stashed session keys

If you've got a notmuch dump that includes stashed session keys for
every decrypted message, and you've got your message archive, you
should be able to get back to the same index that you had before.

Here we add a simple test that give some flavor of how that works.
test/T357-index-decryption.sh