diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-05 15:02:20 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-05 15:02:20 -0800 |
commit | 306e19f5ddec1b10a0e99ccc54823544187e7ac3 (patch) | |
tree | 28588df73ea9dc3954073076c480222db5134e99 /notmuch.c | |
parent | afcd85ee71b9b835da88be371351f2ddab426714 (diff) |
notmuch show: Move subject from one-line summary down to its own line.
And change the display code in emacs to display the one-line summary
in inverse video.
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -913,7 +913,6 @@ _get_one_line_summary (void *ctx, notmuch_message_t *message) const char *from; time_t date; const char *relative_date; - const char *subject; const char *tags; from = notmuch_message_get_header (message, "from"); @@ -921,12 +920,10 @@ _get_one_line_summary (void *ctx, notmuch_message_t *message) date = notmuch_message_get_date (message); relative_date = _format_relative_date (ctx, date); - subject = notmuch_message_get_header (message, "subject"); - tags = _get_tags_as_string (ctx, message); - return talloc_asprintf (ctx, "%s (%s) %s (%s)", - from, relative_date, subject, tags); + return talloc_asprintf (ctx, "%s (%s) (%s)", + from, relative_date, tags); } static void @@ -1118,6 +1115,8 @@ show_command (void *ctx, unused (int argc), unused (char *argv[])) printf ("%s\n", _get_one_line_summary (local, message)); + printf ("%s\n", notmuch_message_get_header (message, "subject")); + for (i = 0; i < ARRAY_SIZE (headers); i++) { name = headers[i]; value = notmuch_message_get_header (message, name); |