diff options
author | Austin Clements <amdragon@MIT.EDU> | 2011-12-24 13:52:43 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-25 22:17:27 -0400 |
commit | 36f7fe5a1c83f3f0dd8fc883db558ab058b974f3 (patch) | |
tree | d571d2883fb41250a26c855209b2ffe1f640fce4 /show-message.c | |
parent | c44a0edadca995ddee4b159e9c465d40a32af6e4 (diff) |
show: Pass notmuch_message_t instead of path to show_message_body.
In addition to simplifying the code, we'll need the notmuch_message_t*
in show_message_body shortly.
Diffstat (limited to 'show-message.c')
-rw-r--r-- | show-message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/show-message.c b/show-message.c index d83f04ec..09fa607f 100644 --- a/show-message.c +++ b/show-message.c @@ -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; |