- "\t\tConstruct a reply template for a set of messages.",
- "\t\tConstructs a new message as a reply to a set of existing\n"
- "\t\tmessages. The Reply-To: header (if any, otherwise From:) is\n"
- "\t\tused for the To: address. The To: and Cc: headers are copied,\n"
- "\t\tbut not including any of the user's configured addresses.\n"
- "\n"
- "\t\tA suitable subject is constructed. The In-Reply-to: and\n"
- "\t\tReferences: headers are set appropriately, and the content\n"
- "\t\tof the original messages is quoted and included in the body\n"
- "\t\t(unless --format=headers-only is given).\n"
- "\n"
- "\t\tThe resulting message template is output to stdout.\n"
- "\n"
- "\t\tSupported options for reply include:\n"
- "\n"
- "\t\t--format=(default|headers-only)\n"
- "\n"
- "\t\t\tdefault:\n"
- "\t\t\t\tIncludes subject and quoted message body.\n"
- "\n"
- "\t\t\theaders-only:\n"
- "\t\t\t\tOnly produces In-Reply-To, References, To\n"
- "\t\t\t\tCc, and Bcc headers.\n"
- "\n"
- "\t\tSee \"notmuch help search-terms\" for details of the search\n"
- "\t\tterms syntax." },
- { "tag", notmuch_tag_command,
- "+<tag>|-<tag> [...] [--] <search-terms> [...]",
- "\t\tAdd/remove tags for all messages matching the search terms.",
- "\t\tThe search terms are handled exactly as in 'search' so one\n"
- "\t\tcan use that command first to see what will be modified.\n"
- "\n"
- "\t\tTags prefixed by '+' are added while those prefixed by\n"
- "\t\t'-' are removed. For each message, tag removal is performed\n"
- "\t\tbefore tag addition.\n"
- "\n"
- "\t\tThe beginning of <search-terms> is recognized by the first\n"
- "\t\targument that begins with neither '+' nor '-'. Support for\n"
- "\t\tan initial search term beginning with '+' or '-' is provided\n"
- "\t\tby allowing the user to specify a \"--\" argument to separate\n"
- "\t\tthe tags from the search terms.\n"
- "\n"
- "\t\tSee \"notmuch help search-terms\" for details of the search\n"
- "\t\tterms syntax." },
- { "dump", notmuch_dump_command,
- "[<filename>]",
- "\t\tCreate a plain-text dump of the tags for each message.",
- "\t\tOutput is to the given filename, if any, or to stdout.\n"
- "\t\tThese tags are the only data in the notmuch database\n"
- "\t\tthat can't be recreated from the messages themselves.\n"
- "\t\tThe output of notmuch dump is therefore the only\n"
- "\t\tcritical thing to backup (and much more friendly to\n"
- "\t\tincremental backup than the native database files.)" },
- { "restore", notmuch_restore_command,
- "<filename>",
- "\t\tRestore the tags from the given dump file (see 'dump').",
- "\t\tNote: The dump file format is specifically chosen to be\n"
- "\t\tcompatible with the format of files produced by sup-dump.\n"
- "\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,
- "[<search-terms> [...] ]",
- "\t\tList all tags found in the database or matching messages.",
- "\t\tRun this command without any search-term(s) to obtain a list\n"
- "\t\tof all tags found in the database. If you provide one or more\n"
- "\t\tsearch-terms as argument(s) then the resulting list will\n"
- "\t\tcontain tags only from messages that match the search-term(s).\n"
- "\n"
- "\t\tIn both cases the list will be alphabetically sorted." },
- { "part", notmuch_part_command,
- "--part=<num> <search-terms>",
- "\t\tOutput a single MIME part of a message.",
- "\t\tA single decoded MIME part, with no encoding or framing,\n"
- "\t\tis output to stdout. The search terms must match only a single\n"
- "\t\tmessage, otherwise this command will fail.\n"
- "\n"
- "\t\tThe part number should match the part \"id\" field output\n"
- "\t\tby the \"--format=json\" option of \"notmuch show\". If the\n"
- "\t\tmessage specified by the search terms does not include a\n"
- "\t\tpart with the specified \"id\" there will be no output." },
- { "help", notmuch_help_command,
+ "Construct a reply template for a set of messages." },
+ { "tag", notmuch_tag_command, FALSE,
+ "+<tag>|-<tag> [...] [--] <search-terms> [...]" ,
+ "Add/remove tags for all messages matching the search terms." },
+ { "dump", notmuch_dump_command, FALSE,
+ "[<filename>] [--] [<search-terms>]",
+ "Create a plain-text dump of the tags for each message." },
+ { "restore", notmuch_restore_command, FALSE,
+ "[--accumulate] [<filename>]",
+ "Restore the tags from the given dump file (see 'dump')." },
+ { "config", notmuch_config_command, FALSE,
+ "[get|set] <section>.<item> [value ...]",
+ "Get or set settings in the notmuch configuration file." },
+ { "help", notmuch_help_command, TRUE, /* create but don't save config */