8 **notmuch** **address** [*option* ...] <*search-term*> ...
13 Search for messages matching the given search terms, and display the
14 addresses from them. Duplicate addresses are filtered out.
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 where
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|count|address)``
33 Controls which information appears in the output. This option can
34 be given multiple times to combine different outputs. When
35 neither ``--output=sender`` nor ``--output=recipients`` is
36 given, ``--output=sender`` is implied.
39 Output all addresses from the *From* header.
41 Note: Searching for **sender** should be much faster than
42 searching for **recipients**, because sender addresses are
43 cached directly in the database whereas other addresses need
44 to be fetched from message files.
47 Output all addresses from the *To*, *Cc* and *Bcc* headers.
50 Print the count of how many times was the address encountered
53 Note: With this option, addresses are printed only after the
54 whole search is finished. This may take long time.
57 Output only the email addresses instead of the full mailboxes
58 with names and email addresses. This option has no effect on
59 the JSON or S-Expression output formats.
61 ``--deduplicate=(no|mailbox|address)``
62 Control the deduplication of results.
65 Output all occurrences of addresses in the matching
66 messages. This is not applicable with ``--output=count``.
69 Deduplicate addresses based on the full, case sensitive name
70 and email address, or mailbox. This is effectively the same as
71 piping the ``--deduplicate=no`` output to **sort | uniq**, except
72 for the order of results. This is the default.
75 Deduplicate addresses based on the case insensitive address
76 part of the mailbox. Of all the variants (with different name
77 or case), print the one occurring most frequently among the
78 matching messages. If ``--output=count`` is specified, include all
79 variants in the count.
81 ``--sort=``\ (**newest-first**\ \|\ **oldest-first**)
82 This option can be used to present results in either chronological
83 order (**oldest-first**) or reverse chronological order
86 By default, results will be displayed in reverse chronological
87 order, (that is, the newest results will be displayed first).
89 However, if either ``--output=count`` or ``--deduplicate=address`` is
90 specified, this option is ignored and the order of the results is
93 ``--exclude=(true|false)``
94 A message is called "excluded" if it matches at least one tag in
95 search.exclude\_tags that does not appear explicitly in the search
96 terms. This option specifies whether to omit excluded messages in
99 The default value, **true**, prevents excluded messages from
100 matching the search terms.
102 **false** allows excluded messages to match search terms and
103 appear in displayed results.
108 This command supports the following special exit status codes
111 The requested format version is too old.
114 The requested format version is too new.
120 **notmuch-config(1)**,
121 **notmuch-count(1)**,
123 **notmuch-hooks(5)**,
124 **notmuch-insert(1)**,
126 **notmuch-reply(1)**,
127 **notmuch-restore(1)**,
128 **notmuch-search-terms(7)**,
131 **notmuch-search(1)**