X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=doc%2Fman1%2Fnotmuch-search.rst;h=0cc2911f7ff6c0865e164d7e16c04fa5e24cd6ff;hb=8e3ee13abc8f7e62557aaf862bbf6aa3e33f6d33;hp=7ac6c68e68acaa54592ca03ab36378281e7a4471;hpb=d736260385a689b5c77d8121f48e29440e3adfa4;p=notmuch diff --git a/doc/man1/notmuch-search.rst b/doc/man1/notmuch-search.rst index 7ac6c68e..0cc2911f 100644 --- a/doc/man1/notmuch-search.rst +++ b/doc/man1/notmuch-search.rst @@ -35,7 +35,7 @@ Supported options for **search** include intended for programs that invoke **notmuch(1)** internally. If omitted, the latest supported version will be used. - ``--output=(summary|threads|messages|files|tags)`` + ``--output=(summary|threads|messages|files|tags|sender|recipients)`` **summary** Output a summary of each thread with any message matching @@ -64,8 +64,13 @@ Supported options for **search** include (--format=json), or as an S-Expression list (--format=sexp). Note that each message may have multiple filenames - associated with it. All of them are included in the output, - unless limited with the --duplicate=N option. + associated with it. All of them are included in the output + (unless limited with the --duplicate=N option). This may + be particularly confusing for **folder:** or **path:** + searches in a specified directory, as the messages may + have duplicates in other directories that are included in + the output, although these files alone would not match the + search. **tags** Output all tags that appear on any message matching the @@ -117,10 +122,14 @@ Supported options for **search** include rather than the number of matching messages. ``--duplicate=N`` - Effective with ``--output=files``, output the Nth filename - associated with each message matching the query (N is 1-based). - If N is greater than the number of files associated with the - message, don't print anything. + For ``--output=files``, output the Nth filename associated + with each message matching the query (N is 1-based). If N is + greater than the number of files associated with the message, + don't print anything. + + For ``--output=messages``, only output message IDs of messages + matching the search terms that have at least N filenames + associated with them. Note that this option is orthogonal with the **folder:** search prefix. The prefix matches messages based on filenames. This @@ -144,3 +153,4 @@ SEE ALSO **notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**, **notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**, **notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)** +***notmuch-address(1)**