2016-07-25 11:11:33 +00:00
|
|
|
.Dd July 22, 2016
|
|
|
|
.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
|
|
|
|
.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 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:
|
2016-07-25 15:10:09 +00:00
|
|
|
.Sq Li "from:sender:reply-to:to:cc:bcc:"
|
2016-07-25 11:11:33 +00:00
|
|
|
and the same with
|
2016-07-25 15:10:09 +00:00
|
|
|
.Sq Li "resent-" .
|
2016-07-25 11:11:33 +00:00
|
|
|
.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/
|