mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
74168777cb
commit
13a7b6700e
2 changed files with 5 additions and 5 deletions
|
@ -90,7 +90,8 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
|
||||||
fprintf (stderr, "Out of memory.\n");
|
fprintf (stderr, "Out of memory.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (*query_str == '\0' || (*query_str == '*' && *(query_str+1) == '\0')) {
|
|
||||||
|
if (*query_str == '\0') {
|
||||||
query_str = talloc_strdup (ctx, "");
|
query_str = talloc_strdup (ctx, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,12 +223,11 @@ command_t commands[] = {
|
||||||
"\tof messages matching both a specific tag and either inbox\n"
|
"\tof messages matching both a specific tag and either inbox\n"
|
||||||
"\tor unread\n"
|
"\tor unread\n"
|
||||||
"\n"
|
"\n"
|
||||||
"\tIf no parameters are given, or the special search terms '' or\n"
|
"\tWith no search terms, a count of all messages in the database\n"
|
||||||
"\t'*' are given, it will display the total number of messages in\n"
|
"\twill be displayed.\n"
|
||||||
"\tthe database.\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"\tSee \"notmuch help search-terms\" for details of the search\n"
|
"\tSee \"notmuch help search-terms\" for details of the search\n"
|
||||||
"\t\tterms syntax." },
|
"\tterms syntax." },
|
||||||
{ "reply", notmuch_reply_command,
|
{ "reply", notmuch_reply_command,
|
||||||
"[options...] <search-terms> [...]",
|
"[options...] <search-terms> [...]",
|
||||||
"Construct a reply template for a set of messages.",
|
"Construct a reply template for a set of messages.",
|
||||||
|
|
Loading…
Reference in a new issue