]> git.notmuchmail.org Git - notmuch/commit - mime-node.c
cli: use new notmuch_crypto_get_context in mime-node.c
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 26 May 2012 18:45:46 +0000 (11:45 -0700)
committerDavid Bremner <bremner@debian.org>
Sun, 10 Jun 2012 23:09:42 +0000 (20:09 -0300)
commite04b18cf3624e1ba29a45cd1f15715e1da244021
treedc47a8a961c58a90191352ca6db7c881d7ff2429
parentb2c8fdee53a1b06dd19fafe23e53ac8555d294af
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.
mime-node.c
notmuch-client.h
notmuch-reply.c
notmuch-show.c