]> git.notmuchmail.org Git - notmuch/blob - doc/man1/notmuch-address.rst
man: document notmuch address --deduplicate=address option
[notmuch] / doc / man1 / notmuch-address.rst
1 ===============
2 notmuch-address
3 ===============
4
5 SYNOPSIS
6 ========
7
8 **notmuch** **address** [*option* ...] <*search-term*> ...
9
10 DESCRIPTION
11 ===========
12
13 Search for messages matching the given search terms, and display the
14 addresses from them. Duplicate addresses are filtered out.
15
16 See **notmuch-search-terms(7)** for details of the supported syntax for
17 <search-terms>.
18
19 Supported options for **address** include
20
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
25         where available).
26
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.
31
32     ``--output=(sender|recipients|count)``
33
34         Controls which information appears in the output. This option
35         can be given multiple times to combine different outputs.
36         When neither --output=sender nor --output=recipients is
37         given, --output=sender is implied.
38
39         **sender**
40             Output all addresses from the *From* header.
41
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.
46
47         **recipients**
48             Output all addresses from the *To*, *Cc* and *Bcc*
49             headers.
50
51         **count**
52             Print the count of how many times was the address
53             encountered during search.
54
55             Note: With this option, addresses are printed only after
56             the whole search is finished. This may take long time.
57
58     ``--deduplicate=(no|mailbox|address)``
59
60         Control the deduplication of results.
61
62         **no**
63             Output all occurences of addresses in the matching
64             messages. This is not applicable with --output=count.
65
66         **mailbox**
67             Deduplicate addresses based on the full, case sensitive
68             name and email address, or mailbox. This is effectively
69             the same as piping the --deduplicate=no output to **sort |
70             uniq**, except for the order of results. This is the
71             default.
72
73         **address**
74             Deduplicate addresses based on the case insensitive
75             address part of the mailbox. Of all the variants (with
76             different name or case), print the one occurring most
77             frequently among the matching messages. If --output=count
78             is specified, include all variants in the count.
79
80     ``--sort=``\ (**newest-first**\ \|\ **oldest-first**)
81         This option can be used to present results in either
82         chronological order (**oldest-first**) or reverse chronological
83         order (**newest-first**).
84
85         By default, results will be displayed in reverse chronological
86         order, (that is, the newest results will be displayed first).
87
88         This option is not supported with --output=count.
89
90     ``--exclude=(true|false)``
91         A message is called "excluded" if it matches at least one tag in
92         search.tag\_exclude that does not appear explicitly in the
93         search terms. This option specifies whether to omit excluded
94         messages in the search process.
95
96         The default value, **true**, prevents excluded messages from
97         matching the search terms.
98
99         **false** allows excluded messages to match search terms and
100         appear in displayed results.
101
102 EXIT STATUS
103 ===========
104
105 This command supports the following special exit status codes
106
107 ``20``
108     The requested format version is too old.
109
110 ``21``
111     The requested format version is too new.
112
113 SEE ALSO
114 ========
115
116 **notmuch(1)**, **notmuch-config(1)**, **notmuch-count(1)**,
117 **notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**,
118 **notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**,
119 **notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)**,
120 **notmuch-search(1)**