]> git.cworth.org Git - obsolete/notmuch-old/commit
Add 'notmuch count' command to show the count of matching messages
authorKeith Packard <keithp@keithp.com>
Sat, 21 Nov 2009 07:15:07 +0000 (23:15 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 05:33:54 +0000 (06:33 +0100)
commit53f8cc565126db4a003dbfc02850d2bf3b260636
tree9797fb6cd1acfc5070bc7ede019772f356fee522
parent43daa6f070f962959bf26fa49a860f528b2bbfa1
Add 'notmuch count' command to show the count of matching messages

Getting the count of matching threads or messages is a fairly
expensive operation. Xapian provides a very efficient mechanism that
returns an approximate value, so use that for this new command.

This returns the number of matching messages, not threads, as that is
cheap to compute.

Signed-off-by: Keith Packard <keithp@keithp.com>
Makefile.local
lib/notmuch.h
lib/query.cc
notmuch-client.h
notmuch-count.c [new file with mode: 0644]
notmuch.c