2020-03-30 17:02:55 +00:00
|
|
|
.Dd March 30, 2020
|
2016-07-25 11:11:33 +00:00
|
|
|
.Dt MADDR 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm maddr
|
2016-07-25 14:57:17 +00:00
|
|
|
.Nd extract mail addresses from messages
|
2016-07-25 11:11:33 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2020-03-30 17:02:55 +00:00
|
|
|
.Op Fl ad
|
2016-07-25 11:11:33 +00:00
|
|
|
.Op Fl h Ar headers
|
|
|
|
.Op Ar msgs\ ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2018-01-25 20:07:57 +00:00
|
|
|
prints, separated by newlines, all mail addresses found in the
|
2016-07-25 11:11:33 +00:00
|
|
|
.Ar headers
|
2017-06-29 13:09:34 +00:00
|
|
|
of the specified
|
|
|
|
.Ar msgs .
|
2018-01-25 20:07:57 +00:00
|
|
|
.Po See
|
2016-07-25 11:11:33 +00:00
|
|
|
.Xr mmsg 7
|
|
|
|
for the message argument syntax.
|
2018-01-25 20:07:57 +00:00
|
|
|
.Pc
|
2016-07-25 11:11:33 +00:00
|
|
|
.Pp
|
|
|
|
If no
|
|
|
|
.Ar msgs
|
2018-01-25 20:07:57 +00:00
|
|
|
are specified
|
2016-07-25 11:11:33 +00:00
|
|
|
and
|
|
|
|
.Nm
|
|
|
|
is used interactively,
|
|
|
|
.Nm
|
2018-01-25 20:07:57 +00:00
|
|
|
will operate on the current sequence by default.
|
2017-06-29 13:09:34 +00:00
|
|
|
Otherwise,
|
2016-07-25 11:11:33 +00:00
|
|
|
.Nm
|
2018-01-25 20:07:57 +00:00
|
|
|
will read filenames from the standard input.
|
2016-07-25 11:11:33 +00:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
2016-08-09 13:49:46 +00:00
|
|
|
.It Fl a
|
2018-01-25 20:07:57 +00:00
|
|
|
Only print the addr-spec address, not the display name.
|
2020-03-30 17:02:55 +00:00
|
|
|
.It Fl d
|
|
|
|
Only print the display name.
|
2016-07-25 11:11:33 +00:00
|
|
|
.It Fl h Ar headers
|
2016-07-25 22:27:28 +00:00
|
|
|
Only search the colon-separated list of
|
2016-07-25 11:11:33 +00:00
|
|
|
.Ar headers
|
|
|
|
for mail addresses.
|
|
|
|
Default:
|
2018-01-25 20:25:12 +00:00
|
|
|
.Sq Li from\&:sender\&:reply\&-to\&:to\&:cc\&:bcc\&:
|
2017-06-29 13:09:34 +00:00
|
|
|
and their respective
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li resent\&-
|
2018-01-25 20:07:57 +00:00
|
|
|
variants, if any.
|
2016-07-25 11:11:33 +00:00
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Ex -std
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mmsg 7
|
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|
2016-07-25 11:11:33 +00:00
|
|
|
.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/
|