aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index d84cea59..72ca6204 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -187,6 +187,17 @@ command_t commands[] = {
"\n"
"\t\tSee \"notmuch help search-terms\" for details of the search\n"
"\t\tterms syntax." },
+ { "count", notmuch_count_command,
+ "<search-terms> [...]",
+ "\t\tCount messages matching the search terms.",
+ "\t\tThe number of matching messages is output to stdout.\n"
+ "\n"
+ "\t\tA common use of \"notmuch count\" is to display the count\n"
+ "\t\tof messages matching both a specific tag and either inbox\n"
+ "\t\tor unread\n"
+ "\n"
+ "\t\tSee \"notmuch help search-terms\" for details of the search\n"
+ "\t\tterms syntax." },
{ "reply", notmuch_reply_command,
"<search-terms> [...]",
"\t\tConstruct a reply template for a set of messages.",