2016-08-17 13:45:09 +00:00
|
|
|
.Dd August 17, 2016
|
2016-07-22 19:36:46 +00:00
|
|
|
.Dt MHDR 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mhdr
|
|
|
|
.Nd show mail headers
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2017-09-06 15:46:20 +00:00
|
|
|
.Op Fl h Ar header Op Fl p Ar parameter
|
2016-07-28 11:08:04 +00:00
|
|
|
.Op Fl d
|
2016-08-17 13:45:09 +00:00
|
|
|
.Op Fl H
|
2016-07-28 11:08:04 +00:00
|
|
|
.Op Fl M
|
|
|
|
.Op Fl A | Fl D
|
2016-07-22 19:36:46 +00:00
|
|
|
.Op Ar msgs\ ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2017-07-01 16:35:24 +00:00
|
|
|
prints the mail headers of the specified
|
2016-07-22 19:36:46 +00:00
|
|
|
.Ar msgs .
|
|
|
|
See
|
2016-07-22 19:43:03 +00:00
|
|
|
.Xr mmsg 7
|
2016-07-22 19:36:46 +00:00
|
|
|
for the message argument syntax.
|
|
|
|
.Pp
|
|
|
|
If no
|
|
|
|
.Ar msgs
|
2017-07-01 16:35:24 +00:00
|
|
|
are specified,
|
2016-07-22 19:36:46 +00:00
|
|
|
.Nm
|
|
|
|
will default to the current message.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
2016-07-28 11:08:04 +00:00
|
|
|
.It Fl h Ar header
|
|
|
|
Only print the values of the headers in the colon-separated list
|
|
|
|
.Ar header .
|
2017-09-06 15:46:20 +00:00
|
|
|
.It Fl p Ar parameter
|
|
|
|
Extract a particular RFC 2045
|
|
|
|
.Ar parameter
|
|
|
|
from the specified headers.
|
2016-07-28 11:08:04 +00:00
|
|
|
.It Fl d
|
|
|
|
Decode the headers according to RFC 2047.
|
2016-08-17 13:45:09 +00:00
|
|
|
.It Fl H
|
2017-07-02 16:22:51 +00:00
|
|
|
Prefix output lines with the filename of the message,
|
2017-07-01 16:35:24 +00:00
|
|
|
followed by a tab.
|
2016-07-28 11:08:04 +00:00
|
|
|
.It Fl M
|
|
|
|
Search for all occurrences of the headers
|
|
|
|
(default: only the first).
|
|
|
|
.It Fl A
|
2017-07-01 16:35:24 +00:00
|
|
|
Scan for RFC 5322 addresses in the headers and print them, one per line.
|
2016-07-28 11:08:04 +00:00
|
|
|
.It Fl D
|
|
|
|
Assume header contains RFC 5322 date and print as Unix timestamp.
|
2016-07-22 19:36:46 +00:00
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
2016-08-08 12:23:20 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility exits 0 on success,
|
2017-07-01 16:35:24 +00:00
|
|
|
1 if no header was printed,
|
2016-08-08 12:23:20 +00:00
|
|
|
and >1 if an error occurs.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh SEE ALSO
|
2016-07-22 19:43:03 +00:00
|
|
|
.Xr mmsg 7
|
2016-07-28 11:08:04 +00:00
|
|
|
.Rs
|
|
|
|
.%A N. Freed
|
|
|
|
.%A N. Borenstein
|
2017-09-06 15:46:20 +00:00
|
|
|
.%D November 1996
|
|
|
|
.%R RFC 2045
|
|
|
|
.%T Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
|
|
|
|
.Re
|
|
|
|
.Rs
|
|
|
|
.%A N. Freed
|
|
|
|
.%A N. Borenstein
|
2016-07-28 11:08:04 +00:00
|
|
|
.%B MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text
|
|
|
|
.%R RFC 2047
|
|
|
|
.%D November 1996
|
|
|
|
.Re
|
|
|
|
.Rs
|
|
|
|
.%A P. Resnick (ed.)
|
|
|
|
.%B Internet Message Format
|
|
|
|
.%R RFC 5322
|
|
|
|
.%D October 2008
|
|
|
|
.Re
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|
2016-07-22 19:36:46 +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/
|