aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorGravatar Jameson Graef Rollins <jrollins@finestructure.net>2012-05-26 11:45:43 -0700
committerGravatar David Bremner <bremner@debian.org>2012-06-10 20:06:48 -0300
commit429ebf5d20a943fb520d7321c5dde721265b0155 (patch)
tree2d1a877a74e8f8e833e4056b620324cce33c3810 /notmuch-reply.c
parentc3eba1c3f85394b977f513059a0585d89a9a4e2d (diff)
cli: modify mime_node_open to take new crypto struct as argument
This simplifies the interface considerably.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 11f269f4..6f368c93 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -575,8 +575,7 @@ notmuch_reply_format_default(void *ctx,
g_object_unref (G_OBJECT (reply));
reply = NULL;
- if (mime_node_open (ctx, message, params->crypto.gpgctx, params->crypto.decrypt,
- &root) == NOTMUCH_STATUS_SUCCESS) {
+ if (mime_node_open (ctx, message, &(params->crypto), &root) == NOTMUCH_STATUS_SUCCESS) {
format_part_reply (root);
talloc_free (root);
}
@@ -605,8 +604,7 @@ notmuch_reply_format_json(void *ctx,
messages = notmuch_query_search_messages (query);
message = notmuch_messages_get (messages);
- if (mime_node_open (ctx, message, params->crypto.gpgctx, params->crypto.decrypt,
- &node) != NOTMUCH_STATUS_SUCCESS)
+ if (mime_node_open (ctx, message, &(params->crypto), &node) != NOTMUCH_STATUS_SUCCESS)
return 1;
reply = create_reply_message (ctx, config, message, reply_all);