MHDR(1)

NAME
mhdr - show mail headers

SYNOPSIS
mhdr [-h header] [-d] [-H] [-M] [-A | -D] [msgs ...]

DESCRIPTION
mhdr prints the mail headers of the specified msgs. See mmsg(7) for the message argument syntax.

If no msgs are specified, mhdr will default to the current message.

The options are as follows:

-h header
    Only print the values of the headers in the colon-separated list header.

-d  Decode the headers according to RFC 2047.

-H  Prefix output lines with the filename of the message, followed by a tab.

-M  Search for all occurrences of the headers (default: only the first).

-A  Scan for RFC 5322 addresses in the headers and print them, one per line.

-D  Assume header contains RFC 5322 date and print as Unix timestamp.

EXIT STATUS
The mhdr utility exits 0 on success, 1 if no header was printed, and >1 if an error occurs.

SEE ALSO
mmsg(7) N. Freed, N. Borenstein, MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text, RFC 2047, November 1996. P. Resnick (ed.), Internet Message Format, RFC 5322, October 2008.

AUTHORS
Leah Neukirchen <leah@vuxu.org>

LICENSE
mhdr is in the public domain.

To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.

http://creativecommons.org/publicdomain/zero/1.0/