diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2020-05-12 18:29:39 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-05-22 22:12:00 -0300 |
commit | 6cdf4b7e38000c6d0a14ff04ab71f7c7e60835ec (patch) | |
tree | b48c8ab9eebebaf71f42f60ef7085349a4958ad7 /lib | |
parent | cb88b51fe55fcb01235747d4b94072fa6efd501c (diff) |
smime: Index cleartext of envelopedData when requested
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/index.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/index.cc b/lib/index.cc index da9a3abe..826aa341 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -656,8 +656,9 @@ _index_pkcs7_part (notmuch_message_t *message, _index_mime_part (message, indexopts, toindex, msg_crypto); } else if (p7type == GMIME_SECURE_MIME_TYPE_ENVELOPED_DATA) { _notmuch_message_add_term (message, "tag", "encrypted"); - if (notmuch_indexopts_get_decrypt_policy (indexopts) != NOTMUCH_DECRYPT_FALSE) - _notmuch_database_log (notmuch, "Cannot decrypt PKCS#7 envelopedData (S/MIME encrypted messages)\n"); + _index_encrypted_mime_part (message, indexopts, + part, + msg_crypto); } else { _notmuch_database_log (notmuch, "Cannot currently handle PKCS#7 smime-type '%s'\n", g_mime_object_get_content_type_parameter (part, "smime-type")); |