[PATCH v6 03/14] index: implement notmuch_indexopts_t with try_decrypt
David Bremner
david at tethera.net
Thu Oct 19 04:44:23 PDT 2017
Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:
> +/**
> + * 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.
> + */
> +notmuch_status_t
> +notmuch_indexopts_set_try_decrypt (notmuch_indexopts_t *indexopts,
> + bool try_decrypt);
> +
> +/**
> + * Return whether to decrypt encrypted parts while indexing.
> + * see notmuch_indexopts_set_try_decrypt.
> + */
> +bool
> +notmuch_indexopts_get_try_decrypt (const notmuch_indexopts_t *indexopts);
> +
> /**
> * Destroy a notmuch_indexopts_t object.
> *
This is updated in dkg's git branch to use notmuch_bool_t
More information about the notmuch
mailing list