]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
Add 'cat' subcommand
[notmuch] / notmuch.c
index 1faed3e47f8c5e896b3edc0daedb9211d5eff303..0eba89a38e30f48d20c67ef0d6b6ef8ba104ac20 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -165,7 +165,7 @@ command_t commands[] = {
       "\t\tPresents the results in either JSON or\n"
       "\t\tplain-text (default)\n"
       "\n"
-      "\t--output=(summary|threads|messages|tags)\n"
+      "\t--output=(summary|threads|messages|files|tags)\n"
       "\n"
       "\t\tsummary (default)\n"
       "\n"
@@ -343,6 +343,10 @@ command_t commands[] = {
       "\tcontain tags only from messages that match the search-term(s).\n"
       "\n"
       "\tIn both cases the list will be alphabetically sorted." },
+    { "cat", notmuch_cat_command,
+      "<search-terms>",
+      "Output raw content of a single message matched by the search term.",
+      "" },
     { "part", notmuch_part_command,
       "--part=<num> <search-terms>",
       "Output a single MIME part of a message.",