Mail::SpamAssassin::Header::AuthenticationResults(3pm)

NAME
Mail::SpamAssassin::Header::AuthenticationResults - parser for Authentication-Results headers

SYNOPSIS
    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

DESCRIPTION
This class inherits from ParameterHeader to parse Authentication-Results header fields per RFC 8601. ParameterHeader handles comment stripping, semicolon tokenization, quoted strings, and line unfolding. This class adds A-R-specific secondary parsing of each method's value string.

METHODS

new($value)
    Creates a new instance, parsing the given raw header value.

authserv_id()
    Returns the authserv-id (first token of the header value), lowercased.

version()
    Returns the version number (default 1).

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, returns all results; in scalar context, returns the first.