X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=0eea5e11f20c49af89587aaddaa171fd6361c7c0;hp=b392c1c207833bc98d60499896a4b57eb162c559;hb=43cbbfc2788a48f817152936789ebed1a567cf9f;hpb=3d33ec7349fd2adfc0013865c192513af37405f5 diff --git a/notmuch.c b/notmuch.c index b392c1c2..0eea5e11 100644 --- a/notmuch.c +++ b/notmuch.c @@ -44,6 +44,9 @@ static const char search_terms_help[] = "\tthe given terms/phrases in the body, the subject, or any of\n" "\tthe sender or recipient headers.\n" "\n" + "\tAs a special case, a search string consisting of exactly a\n" + "\tsingle asterisk (\"*\") will match all messages.\n" + "\n" "\tIn addition to free text, the following prefixes can be used\n" "\tto force terms to match against specific portions of an email,\n" "\t(where indicate user-supplied values):\n" @@ -216,12 +219,11 @@ command_t commands[] = { "Count messages matching the search terms.", "\tThe number of matching messages is output to stdout.\n" "\n" - "\tA common use of \"notmuch count\" is to display the count\n" - "\tof messages matching both a specific tag and either inbox\n" - "\tor unread\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.", @@ -294,6 +296,17 @@ 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." }, + { "part", notmuch_part_command, + "--part= ", + "Output a single MIME part of a message.", + "\tA single decoded MIME part, with no encoding or framing,\n" + "\tis output to stdout. The search terms must match only a single\n" + "\tmessage, otherwise this command will fail.\n" + "\n" + "\tThe part number should match the part \"id\" field output\n" + "\tby the \"--format=json\" option of \"notmuch show\". If the\n" + "\tmessage specified by the search terms does not include a\n" + "\tpart with the specified \"id\" there will be no output." }, { "help", notmuch_help_command, "[]", "This message, or more detailed help for the named command.", @@ -461,7 +474,7 @@ main (int argc, char *argv[]) return notmuch_help_command (NULL, 0, NULL); if (STRNCMP_LITERAL (argv[1], "--version") == 0) { - printf ("notmuch version " STRINGIFY(NOTMUCH_VERSION) "\n"); + printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n"); return 0; }