From 13a7b6700eeae0f0b254f248e5abb742b64cd921 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 9 Apr 2010 16:49:58 -0700 Subject: [PATCH] notmuch count: Remove special handling of "*". From both the implementation and from the documentation. This is handled generically in the library for all search-based commands, so count doesn't need special treatment. --- notmuch-count.c | 3 ++- notmuch.c | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 97242aba..39f08c6c 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -90,7 +90,8 @@ notmuch_count_command (void *ctx, int argc, char *argv[]) fprintf (stderr, "Out of memory.\n"); return 1; } - if (*query_str == '\0' || (*query_str == '*' && *(query_str+1) == '\0')) { + + if (*query_str == '\0') { query_str = talloc_strdup (ctx, ""); } diff --git a/notmuch.c b/notmuch.c index 7e595e24..cde3c33b 100644 --- a/notmuch.c +++ b/notmuch.c @@ -223,12 +223,11 @@ command_t commands[] = { "\tof messages matching both a specific tag and either inbox\n" "\tor unread\n" "\n" - "\tIf no parameters are given, or the special search terms '' or\n" - "\t'*' are given, it will display the total number of messages in\n" - "\tthe database.\n" + "\tWith no search terms, a count of all messages in the database\n" + "\twill be displayed.\n" "\n" "\tSee \"notmuch help search-terms\" for details of the search\n" - "\t\tterms syntax." }, + "\tterms syntax." }, { "reply", notmuch_reply_command, "[options...] [...]", "Construct a reply template for a set of messages.", -- 2.43.0