Mail::...Header(3pm)
π Mail::...Header π
okay bestie, so this is a page from the User Contributed Perl Documentation set, and the star of the show is Mail::SpamAssassin::Header β it's giving very foundational, because it's literally the base class of the SpamAssassin header universe. π
β¨ NAME β¨
Mail::SpamAssassin::Header β bestie, it's the base class for SpamAssassin headers. everything else wants to be it. π
πΈ SYNOPSIS πΈ
my $header = Mail::SpamAssassin::Header->new('raw header value');
print $header->value;
that's it. that's the whole vibe. make one, print its value. iconic honestly. β¨
π¦ DESCRIPTION π¦
so this class is the blueprint for a generic header in SpamAssassin. it doesn't do much on its own β and it's not supposed to! it exists to be the base class that the more specific, more extra header types inherit from. it's the mother of headers, fr fr. π
π METHODS π
new($raw)β spins up a brand new instance of the class. hand it the raw header value as a string and it's like ok periodt, I got you. π«Άraw()β gives you back that raw header value, as a string. straight from the source, no filter, no glow-up. πvalue()β hands you the header value as a string. for a generic header this is literally the same thing as the raw value β no plot twist, no drama. subclasses override it when they wanna do something more specific and main-character. πβ¨
lowkey reminder bestie: value() being "the same as the raw value" is only true for the plain generic header class itself. subclasses are out here doing their own thing, and that's the whole point. π
okay that's the whole page, and honestly? it ate. π no cap. this gem shipped with perl v5.40.1 and got its little timestamp of 2026-07-23 β so go forth, subclass responsibly, and slay. πβπ
π¦ where this page comes from
- ubuntu stonking: spamassassin 4.0.2+svn1935691-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms