Mail::M...hResults(3)
π Mail::Message::Field::AuthResults
okay bestie, gather round, because this is a Perl user-contributed manual page (section 3 of the docs, iykyk) and it's all about a very specific lil header field. Sit down, hydrate, and let's get into it. π
π NAME
Mail::Message::Field::AuthResults β message header field authentication result
π¦ INHERITANCE
the family tree, the bloodline, the lineage β¨
Mail::Message::Field::AuthResults
is a Mail::Message::Field::Structured
is a Mail::Message::Field::Full
is a Mail::Message::Field
is a Mail::Reporter
β¨ SYNOPSIS
here's the vibe in code form, no cap π«Ά
my $f = Mail::Message::Field->new('Authentication-Results' => '...');
my $g = Mail::Message::Field->new('Authentication-Results');
$g->addResult(method => 'dkim', result => 'fail');
π DESCRIPTION
so basically, Mail Transfer Agents can check whether an incoming message is actually legit, and when they do, they add Authentication-Results headers to it β and like, possibly more than one, because why not. This implementation is based on RFC7601, which is the moment. π
It extends "DESCRIPTION" in Mail::Message::Field::Structured.
π OVERLOADED
It extends "OVERLOADED" in Mail::Message::Field::Structured. Here's every overload it carries, bestie:
overload: "" stringificationβ inherited, see "OVERLOADED" in Mail::Message::Field::Fulloverload: '""' stringificationβ inherited, see "OVERLOADED" in Mail::Message::Fieldoverload: '0+' numificationβ inherited, see "OVERLOADED" in Mail::Message::Fieldoverload: '<='> numeric comparisonβ inherited, see "OVERLOADED" in Mail::Message::Fieldoverload: bool booleanβ inherited, see "OVERLOADED" in Mail::Message::Fieldoverload: cmp string comparisonβ inherited, see "OVERLOADED" in Mail::Message::Field
π METHODS
It extends "METHODS" in Mail::Message::Field::Structured.
πΈ Constructors
It extends "Constructors" in Mail::Message::Field::Structured.
$obj->clone()β inherited, see "Constructors" in Mail::Message::Field$class->from($field, %options)β inherited, see "Constructors" in Mail::Message::Field::Full$class->new(%options)β inherited, see "METHODS" in Mail::Message::Field::Structured
and here are all the options new takes, with their homes and defaults, verbatim π«‘
-Option --Defined in --Default
attributes Mail::Message::Field::Structured <ignored>
charset Mail::Message::Field::Full undef
datum Mail::Message::Field::Structured undef
encoding Mail::Message::Field::Full 'q'
force Mail::Message::Field::Full false
language Mail::Message::Field::Full undef
results []
server <required>
version undef
attributes=>\@attributes|\%attributesβ defined in Mail::Message::Field::Structured, default is<ignored>charset=>$charsetβ defined in Mail::Message::Field::Full, default isundefdatum=>$dateβ defined in Mail::Message::Field::Structured, default isundefencoding=>'q'|'Q'|'b'|'B'β defined in Mail::Message::Field::Full, default is'q'force=>BOOLEANβ defined in Mail::Message::Field::Full, default isfalselanguage=>$languageβ defined in Mail::Message::Field::Full, default isundefresults=>ARRAYβ default is[]. Each authentication method is represented by aHASH, which contains the'method'and'result'keys. Sometimes, there is a'comment'. Properties of form'ptype.pname'will be there as well. πserver=>$domainβ where the authentication tool ran. This should be your local service, otherwise you may accept spoofed headers! π¨version=>INTEGERβ default isundef
β οΈ bestie, that server one is important: if it's not your local service, you might be accepting spoofed headers. Do not let them lie to you. π
π Attributes
It extends "Attributes" in Mail::Message::Field::Structured.
$obj->Name()β inherited, see "Attributes" in Mail::Message::Field$obj->body()β inherited, see "Attributes" in Mail::Message::Field$obj->folded()β inherited, see "Attributes" in Mail::Message::Field$obj->foldedBody( [$body] )β inherited, see "Attributes" in Mail::Message::Field$obj->name()β inherited, see "Attributes" in Mail::Message::Field$obj->unfoldedBody( [$body, [$wrap]] )β inherited, see "Attributes" in Mail::Message::Field$obj->wellformedName( [STRING] )β inherited, see "Attributes" in Mail::Message::Field
π¦ The field
It extends "The field" in Mail::Message::Field::Structured.
$any->isStructured( [$name] )β inherited, see "The field" in Mail::Message::Field$obj->length()β inherited, see "The field" in Mail::Message::Field$obj->nrLines()β inherited, see "The field" in Mail::Message::Field$obj->print( [$fh] )β inherited, see "The field" in Mail::Message::Field$obj->size()β inherited, see "The field" in Mail::Message::Field$obj->string( [$wrap] )β inherited, see "The field" in Mail::Message::Field$obj->toDisclose()β inherited, see "The field" in Mail::Message::Field
π Access to the body
It extends "Access to the body" in Mail::Message::Field::Structured.
$obj->decodedBody(%options)β inherited, see "Access to the body" in Mail::Message::Field::Full
π Access to the content
It extends "Access to the content" in Mail::Message::Field::Structured.
$obj->addAttribute(...)β attributes are not supported here. Not the vibe. π$obj->addResult(HASH|PAIRS)β add new results to this header. Invalid results are ignored. β¨$obj->addresses()β inherited, see "Access to the content" in Mail::Message::Field$obj->attrPairs()β inherited, see "Access to the content" in Mail::Message::Field::Structured$obj->attribute( $object|<STRING, %options>|<$name,$value,%options> )β inherited, see "Access to the content" in Mail::Message::Field::Structured$obj->attributes()β inherited, see "Access to the content" in Mail::Message::Field::Structured$obj->beautify()β inherited, see "Access to the content" in Mail::Message::Field::Full$obj->comment( [STRING] )β inherited, see "Access to the content" in Mail::Message::Field$any->createComment(STRING, %options)β inherited, see "Access to the content" in Mail::Message::Field::Full$any->createPhrase(STRING, %options)β inherited, see "Access to the content" in Mail::Message::Field::Full$any->dateToTimestamp(STRING)β inherited, see "Access to the content" in Mail::Message::Field$obj->results()β returns aLISTof resultHASHes. EachHASHat least contains keys'method','method_version', and'result'. π$obj->server()β the hostname which ran this authentication tool. π₯οΈ$any->stripCFWS( [STRING] )β inherited, see "Access to the content" in Mail::Message::Field$obj->study()β inherited, see "Access to the content" in Mail::Message::Field$any->toDate( [$time] )β inherited, see "Access to the content" in Mail::Message::Field$obj->toInt()β inherited, see "Access to the content" in Mail::Message::Field$obj->version()β the version of the'Authentication-Results'header, which may be different from'1'(default) for successors of RFC7601. π
π§ Internals
It extends "Internals" in Mail::Message::Field::Structured.
$any->decode(STRING, %options)β inherited, see "Internals" in Mail::Message::Field::Full$obj->encode(STRING, %options)β inherited, see "Internals" in Mail::Message::Field::Full
π Parsing
It extends "Parsing" in Mail::Message::Field::Structured.
$obj->consume( $line | <$name,<$body|$objects>> )β inherited, see "Parsing" in Mail::Message::Field$any->consumeComment(STRING)β inherited, see "Parsing" in Mail::Message::Field::Full$obj->consumeDotAtom(STRING)β inherited, see "Parsing" in Mail::Message::Field::Full$any->consumePhrase(STRING)β inherited, see "Parsing" in Mail::Message::Field::Full$obj->datum( [$value] )β inherited, see "Parsing" in Mail::Message::Field::Structured$obj->defaultWrapLength( [$length] )β inherited, see "Parsing" in Mail::Message::Field$any->fold( $name, $body, [$maxchars] )β inherited, see "Parsing" in Mail::Message::Field$obj->parse(STRING)β inherited, see "Parsing" in Mail::Message::Field::Full$obj->produceBody()β inherited, see "Parsing" in Mail::Message::Field::Full$obj->setWrapLength( [$length] )β inherited, see "Parsing" in Mail::Message::Field$obj->stringifyData(STRING|ARRAY|$objects)β inherited, see "Parsing" in Mail::Message::Field$obj->unfold(STRING)β inherited, see "Parsing" in Mail::Message::Field
π©· Error handling
It extends "Error handling" in Mail::Message::Field::Structured.
$obj->AUTOLOAD()β inherited, see "Error handling" in Mail::Reporter$obj->notImplemented()β inherited, see "Error handling" in Mail::Reporter
π§Ό Cleanup
It extends "Cleanup" in Mail::Message::Field::Structured.
$obj->DESTROY()β inherited, see "Cleanup" in Mail::Reporter
π DETAILS
It extends "DETAILS" in Mail::Message::Field::Structured.
π DIAGNOSTICS
okay here's the part where things go wrong, and bestie, we love a well-documented crisis π
- Error: class
$packagedoes not implement method$method. β fatal error: the specific$package(or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast bynotImplemented() - Warning: field content is not numerical:
$contentβ the numeric value of a field is requested (for instance the"Lines"or"Content-Length"fields should be numerical), however the data contains weird characters. Cast bytoInt() - Error: field name too long (max
$count), in '$name'. β it is not specified in the RFCs how long a field name can be, but at least it should be a few characters shorter than the line wrap. Cast byfold() - Warning: illegal character in charset '
$name'. β the field is created with an utf8 string which only contains data from the specified character set. However, that character set can never be a valid name because it contains characters which are not permitted. Cast byencode() - Warning: illegal character in field name
$name. β a new field is being created which does contain characters not permitted by the RFCs. Using this field in messages may break other e-mail clients or transfer agents, and therefore mutulate or extinguish your message. Yes really, it says mutulate. Cast byconsume() - Warning: illegal character in language '
$name'. β the field is created with data which is specified to be in a certain language, however, the name of the language cannot be valid: it contains characters which are not permitted by the RFCs. Cast byencode() - Warning: illegal encoding '
$name', using 'q'. β the RFCs only permit base64 ("b "or"B ") or quoted-printable ("q"or"Q") encoding. Other than these four options are illegal. Cast byencode() - Error: no attributes for Authentication-Results. β is is not possible to add attributes to this field. Cast by
addAttribute()
β SEE ALSO
This module is part of Mail-Message version 4.04, built on February 04, 2026. Website: http://perl.overmeer.net/CPAN/ π
π LICENSE π
okay so bestie, the legal tea β β if you're one of the gorgeous humans who contributed to this, peep the file ChangeLog for the receipts π«Ά
This software is copyright (c) 2001-2026 by Mark Overmeer. yep, that's the whole glow-up era, two decades plus of main character energy π
It's free software babes β¨ β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. that's it, that's the vibe. no cap, no secret fine print, just the classic Perl license situation π
ngl that's the whole page β you ate it, you finished it, iconic behavior fr fr π
so yeah, this was Mail::M...hResults(3), brought to you by perl v5.42.0 and dated 2026-02-05. go forth and slay, bestie πΈπ¦π
π¦ where this page comes from
- fedora 44: perl-Mail-Message 4.04-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms