From 53f8cc565126db4a003dbfc02850d2bf3b260636 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 20 Nov 2009 23:15:07 -0800 Subject: 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 --- notmuch-client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index 4fe182ee..c04eaeb4 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -92,6 +92,9 @@ chomp_newline (char *str) str[strlen(str)-1] = '\0'; } +int +notmuch_count_command (void *ctx, int argc, char *argv[]); + int notmuch_dump_command (void *ctx, int argc, char *argv[]); -- cgit v1.2.3