diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2012-05-26 11:45:46 -0700 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-06-10 20:09:42 -0300 |
commit | e04b18cf3624e1ba29a45cd1f15715e1da244021 (patch) | |
tree | dc47a8a961c58a90191352ca6db7c881d7ff2429 /notmuch-client.h | |
parent | b2c8fdee53a1b06dd19fafe23e53ac8555d294af (diff) |
cli: use new notmuch_crypto_get_context in mime-node.c
This has the affect of lazily creating the crypto contexts only when
needed. This removes code duplication from notmuch-show and
notmuch-reply, and should speed up these functions considerably if the
crypto flags are provided but the messages don't have any
cryptographic parts.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 0f29a83a..9b63eae6 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -353,7 +353,8 @@ 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. + * decrypted. If crypto->gpgctx is NULL, it will be lazily + * initialized. * * Return value: * |