X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=262d677c5b4d700277c5e4521382cce2de0b7bc0;hp=dc21096c554a4f435bc4dfda021e041936ab50e1;hb=b596fbbcd30c82a6487231f01ba1e4d68bd98275;hpb=150db11214fead32af8b8a90920947d3a6570295 diff --git a/notmuch.c b/notmuch.c index dc21096c..262d677c 100644 --- a/notmuch.c +++ b/notmuch.c @@ -32,7 +32,7 @@ typedef struct command { const char *documentation; } command_t; -#define MAX_ALIAS_SUBSTITUTIONS 2 +#define MAX_ALIAS_SUBSTITUTIONS 3 typedef struct alias { const char *name; @@ -40,7 +40,8 @@ typedef struct alias { } alias_t; alias_t aliases[] = { - { "part", { "show", "--format=raw"}} + { "part", { "show", "--format=raw"}}, + { "search-tags", {"search", "--output=tags", "*"}} }; static int @@ -241,7 +242,7 @@ static command_t commands[] = { "\n" "\t--format=(text|json|mbox|raw)\n" "\n" - "\t\ttext (default)\n" + "\t\ttext (default for messages)\n" "\n" "\t\tThe default plain-text format has all text-content MIME parts\n" "\t\tdecoded. Various components in the output, ('message', 'header',\n" @@ -273,12 +274,17 @@ static command_t commands[] = { "\n" "\t\thttp://homepage.ntlworld.com/jonathan.deboynepollard/FGA/mail-mbox-formats.html\n" "\n" - "\t\traw\n" + "\t\traw (default for a single part, see --part)\n" "\n" - "\t\tThe original, raw content of the email message is displayed.\n" - "\t\tConsumers of this format should expect to implement MIME\n" - "\t\tdecoding and similar functions. This format must only\n" - "\t\tbe used with search terms matching a single message.\n" + "\t\tFor a message, the original, raw content of the email\n" + "\t\tmessage is output. Consumers of this format should\n" + "\t\texpect to implement MIME decoding and similar functions.\n" + "\n" + "\t\tFor a single part (--part) the raw part content is output\n" + "\t\tafter performing any necessary MIME decoding.\n" + "\n" + "\t\tThe raw format must only be used with search terms matching\n" + "\t\tsingle message.\n" "\n" "\t--part=N\n" "\n" @@ -369,15 +375,6 @@ static command_t commands[] = { "\tSo if you've previously been using sup for mail, then the\n" "\t\"notmuch restore\" command provides you a way to import\n" "\tall of your tags (or labels as sup calls them)." }, - { "search-tags", notmuch_search_tags_command, - "[ [...] ]", - "List all tags found in the database or matching messages.", - "\tRun this command without any search-term(s) to obtain a list\n" - "\tof all tags found in the database. If you provide one or more\n" - "\tsearch-terms as argument(s) then the resulting list will\n" - "\tcontain tags only from messages that match the search-term(s).\n" - "\n" - "\tIn both cases the list will be alphabetically sorted." }, { "config", notmuch_config_command, "[get|set]
. [value ...]", "Get or set settings in the notmuch configuration file.",