]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
cli: modify mime_node_open to take new crypto struct as argument
[notmuch] / notmuch-show.c
index cc509a6f5e779e1af9eb520349c985360837d94b..fb5e9b6057912b615eb9ffeff245086edf0cd642 100644 (file)
@@ -810,8 +810,7 @@ show_message (void *ctx,
     mime_node_t *root, *part;
     notmuch_status_t status;
 
     mime_node_t *root, *part;
     notmuch_status_t status;
 
-    status = mime_node_open (local, message, params->crypto.gpgctx,
-                            params->crypto.decrypt, &root);
+    status = mime_node_open (local, message, &(params->crypto), &root);
     if (status)
        goto DONE;
     part = mime_node_seek_dfs (root, (params->part < 0 ? 0 : params->part));
     if (status)
        goto DONE;
     part = mime_node_seek_dfs (root, (params->part < 0 ? 0 : params->part));