diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-10-20 22:25:38 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-10-21 19:52:47 -0300 |
| commit | 20ff9de24de47e591dd45e7dde0ac10948d6cbf6 (patch) | |
| tree | 2d711341b2384283466ecbd1555e064b8414e119 /lib/notmuch.h | |
| parent | d6929040a4828cf17fb1a4f4d49b95816a5e7b7c (diff) | |
index: implement notmuch_indexopts_t with try_decrypt
This is currently mostly a wrapper around _notmuch_crypto_t that keeps
its internals private and doesn't expose any of the GMime API.
However, non-crypto indexing options might also be added later
(e.g. filters or other transformations).
Diffstat (limited to 'lib/notmuch.h')
| -rw-r--r-- | lib/notmuch.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 89afb6d9..98f6e91a 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -2231,6 +2231,29 @@ notmuch_indexopts_t * notmuch_database_get_default_indexopts (notmuch_database_t *db); /** + * Specify whether to decrypt encrypted parts while indexing. + * + * Be aware that the index is likely sufficient to reconstruct the + * cleartext of the message itself, so please ensure that the notmuch + * message index is adequately protected. DO NOT SET THIS FLAG TO TRUE + * without considering the security of your index. + * + * @since libnotmuch 5.1 (notmuch 0.26) + */ +notmuch_status_t +notmuch_indexopts_set_try_decrypt (notmuch_indexopts_t *indexopts, + notmuch_bool_t try_decrypt); + +/** + * Return whether to decrypt encrypted parts while indexing. + * see notmuch_indexopts_set_try_decrypt. + * + * @since libnotmuch 5.1 (notmuch 0.26) + */ +notmuch_bool_t +notmuch_indexopts_get_try_decrypt (const notmuch_indexopts_t *indexopts); + +/** * Destroy a notmuch_indexopts_t object. * * @since libnotmuch 5.1 (notmuch 0.26) |
