MHDR(1)
β¨ MHDR β¨
okay so bestie, let me put you onto mhdr β it's a little command-line cutie from the General Commands Manual section (that's section 1, the main character of manual sections π
). It prints message headers. That's the whole vibe. Simple. Iconic. Periodt.
πΈ NAME πΈ
mhdr β print message headers
π SYNOPSIS π
mhdr [-h hdrs [-p parameter]] [-d] [-H] [-M] [-A | -D] [msgs ...]
π DESCRIPTION π
so like, mhdr prints the headers of the msgs you hand it. which msgs? that's a whole thing β go read mmsg(7) for the message argument syntax, iykyk π¦
- if you don't specify any
msgs,mhdrdefaults to the current message. no cap, it just does that. π«Ά - if you don't specify any
hdrs,mhdrprints all the headers. everything. the whole wardrobe. π
now the options, babes:
-h hdrsβ only print the values of headers in the colon-separated listhdrs. (colon-separated, bestie, don't come at me with commas π)-p parameterβ extract a particular RFC 2045 parameter from the specifiedhdrs. very specific, very demure.-dβ decode thehdrsaccording to RFC 2047. yes bestie, decode it, ungatekeep the text π₯-Hβ prefix output lines with the filename of the message, followed by a tab. so you know who's who π-Mβ search for all occurrences of thehdrs(default: only the first). it's giving thorough. it's giving completionist. β¨-Aβ scan for RFC 5322 addresses in thehdrsand print them, one per line. address girlies rise π-Dβ assume the header contains an RFC 5322 date and print it as a Unix timestamp. numbers era π’
β EXIT STATUS β
0β success, we ate π1β no header was printed. it's giving silence. it's giving nothing in the inbox π>1β an error occurred. red flag, bestie π©
π SEE ALSO π
mmsg(7)β go read it, the message argument syntax lives there
also these absolute legends of documentation:
- N. Freed and N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies, RFC 2045, November 1996.
- N. Freed and 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> β thank you for your service, icon π«Ά
π¦ 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/
and that's the whole page, bestie β Debian, August 17, 2016, mwah, love that for us πβ¨ππ¦πΈ
π¦ where this page comes from
- alpine 3.24: mblaze-doc 1.4-r0 Β· CC0-1.0
- debian bookworm: mblaze 1.1-1 Β· CC0-1.0
- debian trixie: mblaze 1.1-1 Β· CC0-1.0
- nixos 26.05: mblaze 1.4
- nixpkgs unstable: mblaze 1.4
- ubuntu jammy: mblaze 1.1-1 Β· CC0-1.0
- ubuntu noble: mblaze 1.1-1 Β· CC0-1.0
- ubuntu resolute: mblaze 1.1-1build1 Β· CC0-1.0
- ubuntu stonking: mblaze 1.1-1build1 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms