]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch count: Remove special handling of "*".
authorCarl Worth <cworth@cworth.org>
Fri, 9 Apr 2010 23:49:58 +0000 (16:49 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 10 Apr 2010 00:44:01 +0000 (17:44 -0700)
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
notmuch.c

index 97242abaa778b00764264a0c396e65f6be75e188..39f08c6ca94476757c5591c7a171c74c16875018 100644 (file)
@@ -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, "");
     }
 
index 7e595e247e9f41960df94e01f027110b24859a91..cde3c33b0383df1d675e19f505ba8772bc7e4c4d 100644 (file)
--- 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...] <search-terms> [...]",
       "Construct a reply template for a set of messages.",