]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-search.c
notmuch search: Print the number of matched/total messages for each thread.
[notmuch] / notmuch-search.c
index 85f3514ee099b4142097dde4cd1e0895c979c3af..a0a71bbd7992e02e4f3b42b1bf55939fac0bdc64 100644 (file)
@@ -91,9 +91,11 @@ notmuch_search_command (void *ctx, int argc, char *argv[])
        date = notmuch_thread_get_oldest_date (thread);
        relative_date = notmuch_time_relative_date (ctx, date);
 
-       printf ("thread:%s %12s %s; %s",
+       printf ("thread:%s %12s [%d/%d] %s; %s",
                notmuch_thread_get_thread_id (thread),
                relative_date,
+               notmuch_thread_get_matched_messages (thread),
+               notmuch_thread_get_total_messages (thread),
                notmuch_thread_get_authors (thread),
                notmuch_thread_get_subject (thread));