aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Keith Packard <keithp@keithp.com>2009-11-20 23:15:07 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-23 06:33:54 +0100
commit53f8cc565126db4a003dbfc02850d2bf3b260636 (patch)
tree9797fb6cd1acfc5070bc7ede019772f356fee522 /notmuch-client.h
parent43daa6f070f962959bf26fa49a860f528b2bbfa1 (diff)
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>
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 4fe182ee..c04eaeb4 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -93,6 +93,9 @@ chomp_newline (char *str)
}
int
+notmuch_count_command (void *ctx, int argc, char *argv[]);
+
+int
notmuch_dump_command (void *ctx, int argc, char *argv[]);
int