MADDR(1)
π maddr β extract mail addresses from messages
okay bestie, gather round, because maddr is literally the little gremlin that digs through your mail and pulls out every single address like it's collecting PokΓ©mon π
β¨ SYNOPSIS β¨
maddr [-ad] [-h headers] [msgs ...]
πΈ DESCRIPTION πΈ
maddr prints, separated by newlines, all the mail addresses it finds in the headers of the msgs you hand it. no cap. every single one, one per line, clean and cute π
(if you're wondering how the whole message argument thing works, that's mmsg(7)'s whole gig β go check it.)
so here's the vibe check on where it gets its input:
- if you don't give it any
msgsand you're using it interactively,maddrjust operates on the current sequence by default. iconic, effortless, it just knows. - otherwise, it reads filenames from the standard input. so pipe it, redirect it, do whatever, it's flexible like that π¦
and now, the options, because obviously there are options:
-aβ only print the addr-spec address, not the display name. so you get thesomeone@somewherepart and nothing else. just the facts, ma'am π-dβ only print the display name. no address, just the name. the opposite of-a, and yes you could technically use both, we don't make the rules (well, the manpage kind of does, but whatever) π-hheaders β only search this colon-separated list of headers for mail addresses. the default isfrom:sender:reply-to:to:cc:bcc:and their respectiveresent-variants, if any. so yes, it's already looking in all the right places, this is just if you're feeling particular β¨
π₯ OPTIONS π₯
recapping because you deserve the full menu:
-aβ only print the addr-spec address, not the display name.-dβ only print the display name.-hheaders β only search the colon-separated list of headers for mail addresses. Default:from:sender:reply-to:to:cc:bcc:and their respectiveresent-variants, if any.
π EXIT STATUS π
maddr exits 0 on success, and >0 if an error occurs.
so like, 0 means we ate and left no crumbs π, anything above that means something went sideways and you should probably look at it.
π«Ά SEE ALSO π«Ά
π AUTHORS π
Leah Neukirchen <leah@vuxu.org> β the icon, the legend, the moment π
π LICENSE π
maddr is in the public domain. periodt. π
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/
okay that's the whole thing bestie, you're fully caught up π this page came from the Debian folks and it's dated March 30, 2020 β sending you off with that, mwah πβ¨
π¦ 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