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::Full
  • overload: '""' stringification β€” inherited, see "OVERLOADED" in Mail::Message::Field
  • overload: '0+' numification β€” inherited, see "OVERLOADED" in Mail::Message::Field
  • overload: '<='> numeric comparison β€” inherited, see "OVERLOADED" in Mail::Message::Field
  • overload: bool boolean β€” inherited, see "OVERLOADED" in Mail::Message::Field
  • overload: 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 is undef
  • datum => $date β€” defined in Mail::Message::Field::Structured, default is undef
  • encoding => 'q'|'Q'|'b'|'B' β€” defined in Mail::Message::Field::Full, default is 'q'
  • force => BOOLEAN β€” defined in Mail::Message::Field::Full, default is false
  • language => $language β€” defined in Mail::Message::Field::Full, default is undef
  • results => ARRAY β€” default is []. Each authentication method is represented by a HASH, 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 is undef
⚠️ 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 a LIST of result HASHes. Each HASH at 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 $package does 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 by notImplemented()
  • 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 by toInt()
  • 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 by fold()
  • 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 by encode()
  • 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 by consume()
  • 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 by encode()
  • 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 by encode()
  • 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