Scroll to navigation

Mail::SpamAssassin::Header::AuthenticationResults(3pm) User Contributed Perl Documentation 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

Creates a new instance, parsing the given raw header value.
Returns the authserv-id (first token of the header value), lowercased.
Returns the version number (default 1).
Returns a list of method names that have results.
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.
2026-04-15 perl v5.40.1