aboutsummaryrefslogtreecommitdiff
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2011-05-25 18:01:17 -0700
committerCarl Worth <cworth@cworth.org>2011-05-27 16:22:00 -0700
commit8b18efe171ef80cbb238a9446137c39908755d2d (patch)
tree68f344312f9c55057b1541d2acf2ce43bfd89054 /notmuch-reply.c
parent627d752501b42326b9016271de33a6cb0fa2dc8c (diff)
Add signature verification of PGP/MIME-signed parts with --verify.
This is primarily for notmuch-show, although the functionality is added to show-message. Once signatures are processed a new part_sigstatus formatter is emitted, and the entire multipart/signed part is replaced with the contents of the signed part. At the moment only a json part_sigstatus formatting function is available. Emacs support to follow. The original work for this patch was done by Daniel Kahn Gillmor <dkg@fifthhorseman.net> whose help with this functionality I greatly appreciate.
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 9c35475..99bb15f 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -33,6 +33,7 @@ static const notmuch_show_format_t format_reply = {
"", NULL, "",
"",
NULL,
+ NULL,
reply_part_content,
NULL,
"",
@@ -447,6 +448,7 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_
const notmuch_show_format_t *format = &format_reply;
notmuch_show_params_t params;
params.part = -1;
+ params.cryptoctx = NULL;
for (messages = notmuch_query_search_messages (query);
notmuch_messages_valid (messages);