From: Carl Worth Date: Wed, 4 Nov 2009 23:53:07 +0000 (-0800) Subject: notmuch show: Add filename to output (next to message ID). X-Git-Tag: 0.1~575 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=b1baaab2d53426b44adbbe93b067708a528edad0 notmuch show: Add filename to output (next to message ID). This will allow a client using "notmuch show" to directly open the filename and do whatever it wants with it. --- diff --git a/notmuch.c b/notmuch.c index d8c2ccd1..06c5aa46 100644 --- a/notmuch.c +++ b/notmuch.c @@ -1116,8 +1116,9 @@ show_command (void *ctx, unused (int argc), unused (char *argv[])) { message = notmuch_messages_get (messages); - printf ("\fmessage{ ID: %s\n", - notmuch_message_get_message_id (message)); + printf ("\fmessage{ ID: %s Filename: %s\n", + notmuch_message_get_message_id (message), + notmuch_message_get_filename (message)); printf ("\fheader{\n");