aboutsummaryrefslogtreecommitdiff
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-12-08 01:23:52 -0500
committerDavid Bremner <david@tethera.net>2017-12-08 08:07:02 -0400
commit798aa789b5d117cf11697bc97dd982bd5a2c2ac8 (patch)
tree0424270f3f7c5c8764ce4301ee2b9c05ffa4531d /notmuch-client.h
parentb62045a18680720b407173140d79b459e45e6039 (diff)
lib: convert notmuch decryption policy to an enum
Future patches in this series will introduce new policies; this merely readies the way for them. We also convert --try-decrypt to a keyword argument instead of a boolean.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index fc981459..50b69e35 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -414,9 +414,10 @@ struct mime_node {
/* Construct a new MIME node pointing to the root message part of
* message. If crypto->verify is true, signed child parts will be
- * verified. If crypto->decrypt is true, encrypted child parts will be
- * decrypted. If the crypto contexts (crypto->gpgctx or
- * crypto->pkcs7) are NULL, they will be lazily initialized.
+ * verified. If crypto->decrypt is NOTMUCH_DECRYPT_TRUE, encrypted
+ * child parts will be decrypted. If the crypto contexts
+ * (crypto->gpgctx or crypto->pkcs7) are NULL, they will be lazily
+ * initialized.
*
* Return value:
*
@@ -500,7 +501,7 @@ int notmuch_minimal_options (const char* subcommand_name,
/* the state chosen by the user invoking one of the notmuch
* subcommands that does indexing */
struct _notmuch_client_indexing_cli_choices {
- bool decrypt_policy;
+ int decrypt_policy;
bool decrypt_policy_set;
notmuch_indexopts_t * opts;
};