notmuch show: Add filename to output (next to message ID).
authorCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:53:07 +0000 (15:53 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 23:53:07 +0000 (15:53 -0800)
This will allow a client using "notmuch show" to directly open the
filename and do whatever it wants with it.

notmuch.c

index d8c2ccd1905ab29dfcd4d0f3b78e80936abc13c5..06c5aa4666911f49e1688de9603d27ec61dba15c 100644 (file)
--- 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");