1 .. _notmuch-address(1):
10 **notmuch** **address** [*option* ...] <*search-term*> ...
15 Search for messages matching the given search terms, and display the
16 addresses from them. Duplicate addresses are filtered out.
18 See :any:`notmuch-search-terms(7)` for details of the supported syntax for
21 Supported options for **address** include
25 .. option:: --format=(json|sexp|text|text0)
27 Presents the results in either JSON, S-Expressions, newline
28 character separated plain-text (default), or null character
29 separated plain-text (compatible with :manpage:`xargs(1)` -0
30 option where available).
32 .. option:: --format-version=N
34 Use the specified structured output format version. This is
35 intended for programs that invoke :any:`notmuch(1)` internally. If
36 omitted, the latest supported version will be used.
38 .. option:: --output=(sender|recipients|count|address)
40 Controls which information appears in the output. This option can
41 be given multiple times to combine different outputs. When
42 neither ``--output=sender`` nor ``--output=recipients`` is
43 given, ``--output=sender`` is implied.
46 Output all addresses from the *From* header.
48 Note: Searching for **sender** should be much faster than
49 searching for **recipients**, because sender addresses are
50 cached directly in the database whereas other addresses need
51 to be fetched from message files.
54 Output all addresses from the *To*, *Cc* and *Bcc* headers.
57 Print the count of how many times was the address encountered
60 Note: With this option, addresses are printed only after the
61 whole search is finished. This may take long time.
64 Output only the email addresses instead of the full mailboxes
65 with names and email addresses. This option has no effect on
66 the JSON or S-Expression output formats.
68 .. option:: --deduplicate=(no|mailbox|address)
70 Control the deduplication of results.
73 Output all occurrences of addresses in the matching
74 messages. This is not applicable with ``--output=count``.
77 Deduplicate addresses based on the full, case sensitive name
78 and email address, or mailbox. This is effectively the same as
79 piping the ``--deduplicate=no`` output to **sort | uniq**, except
80 for the order of results. This is the default.
83 Deduplicate addresses based on the case insensitive address
84 part of the mailbox. Of all the variants (with different name
85 or case), print the one occurring most frequently among the
86 matching messages. If ``--output=count`` is specified, include all
87 variants in the count.
89 .. option:: --sort=(newest-first|oldest-first)
91 This option can be used to present results in either chronological
92 order (**oldest-first**) or reverse chronological order
95 By default, results will be displayed in reverse chronological
96 order, (that is, the newest results will be displayed first).
98 However, if either ``--output=count`` or ``--deduplicate=address`` is
99 specified, this option is ignored and the order of the results is
102 .. option:: --exclude=(true|false)
104 A message is called "excluded" if it matches at least one tag in
105 search.exclude\_tags that does not appear explicitly in the search
106 terms. This option specifies whether to omit excluded messages in
109 The default value, **true**, prevents excluded messages from
110 matching the search terms.
112 **false** allows excluded messages to match search terms and
113 appear in displayed results.
118 This command supports the following special exit status codes
121 The requested format version is too old.
124 The requested format version is too new.
130 :any:`notmuch-config(1)`,
131 :any:`notmuch-count(1)`,
132 :any:`notmuch-dump(1)`,
133 :any:`notmuch-hooks(5)`,
134 :any:`notmuch-insert(1)`,
135 :any:`notmuch-new(1)`,
136 :any:`notmuch-reply(1)`,
137 :any:`notmuch-restore(1)`,
138 :any:`notmuch-search(1)`,
139 :any:`notmuch-search-terms(7)`,
140 :any:`notmuch-show(1)`,
141 :any:`notmuch-tag(1)`