X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=40da62b62057b9b346cf624fa381128bbd79d02e;hp=1faed3e47f8c5e896b3edc0daedb9211d5eff303;hb=e7899b00d0948f5d8e75b22b9ce82037593ebcdd;hpb=53311617494feb4ce575e9676cba938b93d5ebfb diff --git a/notmuch.c b/notmuch.c index 1faed3e4..40da62b6 100644 --- a/notmuch.c +++ b/notmuch.c @@ -58,6 +58,7 @@ static const char search_terms_help[] = "\t\ttag: (or is:)\n" "\t\tid:\n" "\t\tthread:\n" + "\t\tfolder:\n" "\n" "\tThe from: prefix is used to match the name or address of\n" "\tthe sender of an email message.\n" @@ -82,6 +83,11 @@ static const char search_terms_help[] = "\tmessages). These thread ID values can be seen in the first\n" "\tcolumn of output from \"notmuch search\".\n" "\n" + "\tThe folder: prefix can be used to search for email message\n" + "\tfiles that are contained within particular directories within\n" + "\tthe mail store. Only the directory components below the top-level\n" + "\tmail database path are available to be searched.\n" + "\n" "\tIn addition to individual terms, multiple terms can be\n" "\tcombined with Boolean operators (\"and\", \"or\", \"not\", etc.).\n" "\tEach term in the query will be implicitly connected by a\n" @@ -165,7 +171,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" @@ -222,7 +228,7 @@ command_t commands[] = { "\t\tall messages in the same thread as any matched\n" "\t\tmessage will be displayed.\n" "\n" - "\t--format=(text|json|mbox)\n" + "\t--format=(text|json|mbox|raw)\n" "\n" "\t\ttext (default)\n" "\n" @@ -254,6 +260,13 @@ command_t commands[] = { "\n" "\t\thttp://homepage.ntlworld.com/jonathan.deboynepollard/FGA/mail-mbox-formats.html\n" "\n" + "\t\traw\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" + "\n" "\tA common use of \"notmuch show\" is to display a single\n" "\tthread of email messages. For this, use a search term of\n" "\t\"thread:\" as can be seen in the first column\n" @@ -535,6 +548,8 @@ main (int argc, char *argv[]) command_t *command; unsigned int i; + talloc_enable_null_tracking (); + local = talloc_new (NULL); g_mime_init (0);