]> git.notmuchmail.org Git - notmuch/blobdiff - show-message.c
show: Pass notmuch_message_t instead of path to show_message_body.
[notmuch] / show-message.c
index d83f04ecc553264bd42b28867e5154c33966b4f2..09fa607f3301533c53df6f30058351224ff473fe 100644 (file)
@@ -175,7 +175,7 @@ show_message_part (GMimeObject *part,
 }
 
 notmuch_status_t
-show_message_body (const char *filename,
+show_message_body (notmuch_message_t *message,
                   const notmuch_show_format_t *format,
                   notmuch_show_params_t *params)
 {
@@ -183,6 +183,7 @@ show_message_body (const char *filename,
     GMimeParser *parser = NULL;
     GMimeMessage *mime_message = NULL;
     notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS;
+    const char *filename = notmuch_message_get_filename (message);
     FILE *file = NULL;
     show_message_state_t state;