X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;fp=lib%2Fnotmuch.h;h=98f6e91a60e940426be88e38d1faff805182c021;hp=89afb6d9b0b1ff14b20e5e1bdbf9ed1cd75b1895;hb=20ff9de24de47e591dd45e7dde0ac10948d6cbf6;hpb=d6929040a4828cf17fb1a4f4d49b95816a5e7b7c diff --git a/lib/notmuch.h b/lib/notmuch.h index 89afb6d9..98f6e91a 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -2230,6 +2230,29 @@ notmuch_config_list_destroy (notmuch_config_list_t *config_list); 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. *