aboutsummaryrefslogtreecommitdiff
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2014-12-09 21:01:11 +0100
committerDavid Bremner <david@tethera.net>2015-03-11 08:04:00 +0100
commitc883e632bf0a3692fa4ca7aa77604e0e60820295 (patch)
treec6ce8a5052663308d36f95b7f7b836af6be4ed4d /notmuch-reply.c
parent21ecd7369aa2aa24d26775c3fe5edcb437914774 (diff)
CLI: make gpg binary used by libgmime configurable.
Previously we set up a way for the top level notmuch command to choose which gpg binary was invoked by libgmime. In this commit we add the (mostly boilerplate) code to allow the notmuch-config command to read and write this path, and use it in the appropriate struct. Update tests for new default variable
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index e18370f8..d51fdfc3 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -822,6 +822,8 @@ notmuch_reply_command (notmuch_config_t *config, int argc, char *argv[])
return EXIT_FAILURE;
}
+ params.crypto.gpgpath = notmuch_config_get_crypto_gpg_path (config);
+
if (notmuch_database_open (notmuch_config_get_database_path (config),
NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))
return EXIT_FAILURE;