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.
This commit is contained in:
Carl Worth 2009-11-04 15:53:07 -08:00
parent 9f668b3d56
commit b1baaab2d5

View file

@ -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");