8 **notmuch** **address** [*option* ...] <*search-term*> ...
13 Search for messages matching the given search terms, and display the
16 See **notmuch-search-terms(7)** for details of the supported syntax for
19 Supported options for **address** include
21 ``--format=``\ (**json**\ \|\ **sexp**\ \|\ **text**\ \|\ **text0**)
22 Presents the results in either JSON, S-Expressions, newline
23 character separated plain-text (default), or null character
24 separated plain-text (compatible with **xargs(1)** -0 option
27 ``--format-version=N``
28 Use the specified structured output format version. This is
29 intended for programs that invoke **notmuch(1)** internally. If
30 omitted, the latest supported version will be used.
32 ``--output=(sender|recipients)``
34 Controls which information appears in the output. This option
35 can be given multiple times to combine different outputs.
36 Omitting this option is equivalent to
37 --output=sender --output=recipients.
40 Output all addresses from the *From* header.
42 Note: Searching for **sender** should be much faster than
43 searching for **recipients**, because sender addresses are
44 cached directly in the database whereas other addresses
45 need to be fetched from message files.
48 Output all addresses from the *To*, *Cc* and *Bcc*
51 ``--sort=``\ (**newest-first**\ \|\ **oldest-first**)
52 This option can be used to present results in either
53 chronological order (**oldest-first**) or reverse chronological
54 order (**newest-first**).
56 By default, results will be displayed in reverse chronological
57 order, (that is, the newest results will be displayed first).
59 ``--exclude=(true|false)``
60 A message is called "excluded" if it matches at least one tag in
61 search.tag\_exclude that does not appear explicitly in the
62 search terms. This option specifies whether to omit excluded
63 messages in the search process.
65 The default value, **true**, prevents excluded messages from
66 matching the search terms.
68 **false** allows excluded messages to match search terms and
69 appear in displayed results.
74 This command supports the following special exit status codes
77 The requested format version is too old.
80 The requested format version is too new.
85 **notmuch(1)**, **notmuch-config(1)**, **notmuch-count(1)**,
86 **notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**,
87 **notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**,
88 **notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)**,
89 ***notmuch-search(1)**