about summary refs log tree commit diff
path: root/man/maddr.1
blob: 56d30f40dc6737487550971464e8fc8dff0a585f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.Dd July 22, 2016
.Dt MADDR 1
.Os
.Sh NAME
.Nm maddr
.Nd extract mail addresses from messages
.Sh SYNOPSIS
.Nm
.Op Fl a
.Op Fl h Ar headers
.Op Ar msgs\ ...
.Sh DESCRIPTION
.Nm
prints all mail addresses mentioned in the
.Ar headers
of the given
.Ar msgs ,
line by line.
See
.Xr mmsg 7
for the message argument syntax.
.Pp
If no
.Ar msgs
are passed,
and
.Nm
is used interactively,
.Nm
will default to the current sequence.
Else,
.Nm
will read filenames from standard input.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Only print the address part of the address, not the display name.
.It Fl h Ar headers
Only search the colon-separated list of
.Ar headers
for mail addresses.
Default:
.Sq Li "from:sender:reply-to:to:cc:bcc:"
and the same with
.Sq Li "resent-" .
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr mmsg 7
.Sh AUTHORS
.An Christian Neukirchen Aq Mt chneukirchen@gmail.com
.Sh LICENSE
.Nm
is in the public domain.
.Pp
To the extent possible under law,
the creator of this work
has waived all copyright and related or
neighboring rights to this work.
.Pp
.Lk http://creativecommons.org/publicdomain/zero/1.0/