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