]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
notmuch: New command 'search-tags'.
[notmuch] / notmuch.c
index 24f872882471baa50482a8730d63504046c05c23..c57bb5c5eef8cc47ff3f8dbf83d1f8b48c75c28f 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -104,7 +104,7 @@ static const char search_terms_help[] =
     "\t\tfollowing syntax would specify a date range to return messages\n"
     "\t\tfrom 2009-10-01 until the current time:\n"
     "\n"
-    "\t\t\t$(date +%s -d 2009-10-01)..$(date +%s)\n\n";
+    "\t\t\t$(date +%%s -d 2009-10-01)..$(date +%%s)\n\n";
 
 command_t commands[] = {
     { "setup", notmuch_setup_command,
@@ -162,16 +162,6 @@ command_t commands[] = {
       "\n"
       "\t\tSupported options for search include:\n"
       "\n"
-      "\t\t--max-threads=<value>\n"
-      "\n"
-      "\t\t\tRestricts displayed search results to a subset\n"
-      "\t\t\tof the results that would match the terms.\n"
-      "\n"
-      "\t\t--first=<value>\n"
-      "\n"
-      "\t\t\tOmits the first <value> threads from the search\n"
-      "\t\t\tresults that would otherwise be displayed.\n"
-      "\n"
       "\t\t--sort=(newest-first|oldest-first)\n"
       "\n"
       "\t\t\tPresent results in either chronological order\n"
@@ -264,6 +254,12 @@ command_t commands[] = {
       "\t\tSo if you've previously been using sup for mail, then the\n"
       "\t\t\"notmuch restore\" command provides you a way to import\n"
       "\t\tall of your tags (or labels as sup calls them)." },
+    { "search-tags", notmuch_search_tags_command,
+      NULL,
+      "List all tags found in the database.",
+      "\t\tThis command returns an alphabetically sorted list of all tags\n"
+      "\t\tthat are present in the database. In other words, the resulting\n"
+      "\t\tlist is a collection of all tags from all messages." },
     { "help", notmuch_help_command,
       "[<command>]",
       "\t\tThis message, or more detailed help for the named command.",