X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=ff860e06a4987fb4872be7212b66414fea998b22;hp=98f6e91a60e940426be88e38d1faff805182c021;hb=e4890b5bf9e2260b36bcc36ddb77d8e97e2abe7d;hpb=20ff9de24de47e591dd45e7dde0ac10948d6cbf6 diff --git a/lib/notmuch.h b/lib/notmuch.h index 98f6e91a..ff860e06 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1764,6 +1764,9 @@ notmuch_message_destroy (notmuch_message_t *message); * add or delete values for, as other subsystems or extensions may * depend on these properties. * + * Please see notmuch-properties(7) for more details about specific + * properties and conventions around their use. + * */ /**@{*/ /** @@ -2230,6 +2233,17 @@ notmuch_config_list_destroy (notmuch_config_list_t *config_list); notmuch_indexopts_t * notmuch_database_get_default_indexopts (notmuch_database_t *db); +/** + * Stating a policy about how to decrypt messages. + * + * See index.decrypt in notmuch-config(1) for more details. + */ +typedef enum { + NOTMUCH_DECRYPT_FALSE, + NOTMUCH_DECRYPT_TRUE, + NOTMUCH_DECRYPT_AUTO, +} notmuch_decryption_policy_t; + /** * Specify whether to decrypt encrypted parts while indexing. * @@ -2241,17 +2255,17 @@ notmuch_database_get_default_indexopts (notmuch_database_t *db); * @since libnotmuch 5.1 (notmuch 0.26) */ notmuch_status_t -notmuch_indexopts_set_try_decrypt (notmuch_indexopts_t *indexopts, - notmuch_bool_t try_decrypt); +notmuch_indexopts_set_decrypt_policy (notmuch_indexopts_t *indexopts, + notmuch_decryption_policy_t decrypt_policy); /** * Return whether to decrypt encrypted parts while indexing. - * see notmuch_indexopts_set_try_decrypt. + * see notmuch_indexopts_set_decrypt_policy. * * @since libnotmuch 5.1 (notmuch 0.26) */ -notmuch_bool_t -notmuch_indexopts_get_try_decrypt (const notmuch_indexopts_t *indexopts); +notmuch_decryption_policy_t +notmuch_indexopts_get_decrypt_policy (const notmuch_indexopts_t *indexopts); /** * Destroy a notmuch_indexopts_t object.