]> git.notmuchmail.org Git - notmuch/commit
notmuch search: Print the number of matched/total messages for each thread.
authorCarl Worth <cworth@cworth.org>
Fri, 13 Nov 2009 06:01:44 +0000 (22:01 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 13 Nov 2009 06:01:44 +0000 (22:01 -0800)
commitc168e24174d32563ceb1a35d9bf1875c5bfeac25
tree687584b0c99cdbd185fd23f73145fe5badb22cc8
parent184c327692b8a8fc08a8b9ddee28d7082c208c23
notmuch search: Print the number of matched/total messages for each thread.

Note that we don't print the number of *unread* messages, but instead
the number of messages that matched the search terms. This is in
keeping with our philosophy that the inbox is nothing more than a
search view. If we search for messages with an inbox tag, then that's
what we'll get a count of. (And if somebody does want to see unread
counts, then they can search for the "unread" tag.)

Getting the number of matched messages is really nice when doing
historical searches. For example in a search like:

notmuch search tag:sent

(where the "sent" tag has been applied to all messages originating
from the user's email address)---here it's really nice to be able to
see a thread where the user just mentioned one point [1/13] vs. really
getting involved in the discussion [10/29].
lib/notmuch-private.h
lib/notmuch.h
lib/query.cc
lib/thread.cc
notmuch-search.c