Mail::...Results(3pm)
π NAME π
Mail::SpamAssassin::Header::AuthenticationResults β bestie, it's a parser for Authentication-Results headers β¨ (from the User Contributed Perl Documentation, iykyk π«Ά)
πΈ SYNOPSIS πΈ
okay so here's the vibe, literally copy-paste coded:
my $ar = Mail::SpamAssassin::Header::AuthenticationResults->new($hdr_value);
print $ar->authserv_id(); # 'mx.example.com'
print $ar->version(); # 1
my @names = $ar->methods(); # ('spf', 'dkim', ...)
my @results = $ar->method('dkim'); # list of result hashes
like, you feed it a header value and it just gets it π
π¦ DESCRIPTION π¦
so this class inherits from ParameterHeader, and its whole thing is parsing Authentication-Results header fields per RFC 8601 β
and like, ParameterHeader is already carrying the team on the annoying parts, no cap:
- comment stripping
- semicolon tokenization
- quoted strings
- line unfolding
then this class rolls up and adds the A-R-specific secondary parsing of each method's value string π₯ like it's the main character of the method-parsing arc, fr fr π
π METHODS π
new($value)β spins up a brand new instance, parsing the given raw header value πΌβ¨authserv_id()β hands you back the authserv-id (that's the first token of the header value, bestie), all lowercased πversion()β returns the version number (default1, iconic default behavior π«Ά)methods()β returns a list of method names that have results πmethod($name)β returns the result(s) for the given method name β¨ Each result is a hash containing"result","reason", and"properties"π In list context it returns all results; in scalar context it returns just the first one. yes, context matters, it's giving dual personality and we love that for it π
ngl bestie, that's the whole page β every option, every detail, nothing skipped, periodt π§
cute little sign-off: this gem comes from perl v5.40.1, dated 2026-07-23, and it's filed under Mail::...Results(3pm) (the User Contributed Perl Documentation, ofc π). go parse those headers, you're doing amazing sweetie ππ
π¦ 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