1NOTMUCH-ADDRESS(1)                  notmuch                 NOTMUCH-ADDRESS(1)
2
3
4

NAME

6       notmuch-address - output addresses from matching messages
7

SYNOPSIS

9       notmuch address [option ...] <search-term> ...
10

DESCRIPTION

12       Search  for  messages  matching the given search terms, and display the
13       addresses from them. Duplicate addresses are filtered out.
14
15       See notmuch-search-terms(7) for details of  the  supported  syntax  for
16       <search-terms>.
17
18       Supported options for address include
19
20       --format=(json|sexp|text|text0)
21              Presents  the  results  in  either  JSON, S-Expressions, newline
22              character separated plain-text (default), or null character sep‐
23              arated  plain-text  (compatible  with  xargs(1)  -0 option where
24              available).
25
26       --format-version=N
27              Use the specified structured  output  format  version.  This  is
28              intended  for  programs  that  invoke  notmuch(1) internally. If
29              omitted, the latest supported version will be used.
30
31       --output=(sender|recipients|count|address)
32              Controls which information appears in the  output.  This  option
33              can  be given multiple times to combine different outputs.  When
34              neither --output=sender nor --output=recipients is given, --out‐
35              put=sender is implied.
36
37              sender Output all addresses from the From header.
38
39                     Note:  Searching  for  sender  should be much faster than
40                     searching for recipients, because  sender  addresses  are
41                     cached  directly  in the database whereas other addresses
42                     need to be fetched from message files.
43
44              recipients
45                     Output all addresses from the To, Cc and Bcc headers.
46
47              count  Print the count of how many times was the address encoun‐
48                     tered during search.
49
50                     Note:  With this option, addresses are printed only after
51                     the whole search is finished. This may take long time.
52
53              address
54                     Output only the email addresses instead of the full mail‐
55                     boxes  with names and email addresses. This option has no
56                     effect on the JSON or S-Expression output formats.
57
58       --deduplicate=(no|mailbox|address)
59              Control the deduplication of results.
60
61              no     Output all occurrences of addresses in the matching  mes‐
62                     sages. This is not applicable with --output=count.
63
64              mailbox
65                     Deduplicate  addresses  based on the full, case sensitive
66                     name and email address, or mailbox. This  is  effectively
67                     the  same as piping the --deduplicate=no output to sort |
68                     uniq, except for  the  order  of  results.  This  is  the
69                     default.
70
71              address
72                     Deduplicate  addresses  based  on  the  case  insensitive
73                     address part of the mailbox. Of all  the  variants  (with
74                     different  name  or  case),  print the one occurring most
75                     frequently among the matching messages. If --output=count
76                     is specified, include all variants in the count.
77
78       --sort=(newest-first|oldest-first)
79              This option can be used to present results in either chronologi‐
80              cal order (oldest-first) or reverse  chronological  order  (new‐
81              est-first).
82
83              By  default,  results will be displayed in reverse chronological
84              order, (that is, the newest results will be displayed first).
85
86              However, if either --output=count  or  --deduplicate=address  is
87              specified,  this  option is ignored and the order of the results
88              is unspecified.
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 search
93              terms. This option specifies whether to omit  excluded  messages
94              in the search process.
95
96              The  default value, true, prevents excluded messages from match‐
97              ing the search terms.
98
99              false allows excluded messages to match search terms and  appear
100              in displayed results.
101

EXIT STATUS

103       This command supports the following special exit status codes
104
105       20     The requested format version is too old.
106
107       21     The requested format version is too new.
108

SEE ALSO

110       notmuch(1),  notmuch-config(1), notmuch-count(1), notmuch-dump(1), not‐
111       much-hooks(5),  notmuch-insert(1),  notmuch-new(1),   notmuch-reply(1),
112       notmuch-restore(1),   notmuch-search-terms(7),   notmuch-show(1),  not‐
113       much-tag(1), notmuch-search(1)
114

AUTHOR

116       Carl Worth and many others
117
119       2009-2018, Carl Worth and many others
120
121
122
123
1240.27                             Jul 16, 2018               NOTMUCH-ADDRESS(1)
Impressum