aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-04 15:53:07 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-04 15:53:07 -0800
commitb1baaab2d53426b44adbbe93b067708a528edad0 (patch)
treecec68e1904b9e6df1219d4906395891071f609b4 /notmuch.c
parent9f668b3d56baed92937180622462b7e1cca6b001 (diff)
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.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c5
1 files changed, 3 insertions, 2 deletions
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");