diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-26 17:35:31 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-26 17:35:31 -0700 |
commit | c12823648ee84b4748e0e9f0cd97f7264911b589 (patch) | |
tree | c3bbb5ed573bcd2a63167416ccab6a09f708ffb5 /notmuch.c | |
parent | 8e96a87fff4d34a154d1456e9ad47e7b0c322d54 (diff) |
Add public notmuch_thread_get_subject
And use this in "notmuch search" to display subject line as well as
thread ID.
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -651,8 +651,11 @@ search_command (int argc, char *argv[]) thread = notmuch_thread_results_get (results); - printf ("%s (", notmuch_thread_get_thread_id (thread)); + printf ("%s %s", + notmuch_thread_get_thread_id (thread), + _notmuch_thread_get_subject (thread)); + printf (" ("); for (tags = notmuch_thread_get_tags (thread); notmuch_tags_has_more (tags); notmuch_tags_advance (tags)) @@ -662,7 +665,6 @@ search_command (int argc, char *argv[]) printf ("%s", notmuch_tags_get (tags)); first = 0; } - printf (")\n"); notmuch_thread_destroy (thread); |