You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mblaze/man/maddr.1

67 lines
1.2 KiB
Groff

.Dd March 30, 2020
.Dt MADDR 1
.Os
.Sh NAME
.Nm maddr
.Nd extract mail addresses from messages
.Sh SYNOPSIS
.Nm
.Op Fl ad
.Op Fl h Ar headers
.Op Ar msgs\ ...
.Sh DESCRIPTION
.Nm
prints, separated by newlines, all mail addresses found in the
.Ar headers
of the specified
.Ar msgs .
.Po See
.Xr mmsg 7
for the message argument syntax.
.Pc
.Pp
If no
.Ar msgs
are specified
and
.Nm
is used interactively,
.Nm
will operate on the current sequence by default.
Otherwise,
.Nm
will read filenames from the standard input.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Only print the addr-spec address, not the display name.
.It Fl d
Only print 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 their respective
.Sq Li resent\&-
variants, if any.
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr mmsg 7
.Sh AUTHORS
.An Leah Neukirchen Aq Mt leah@vuxu.org
.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/