Mail::SPF::Mech::A(3)
π Mail::SPF::Mech::A π
okay bestie, welcome to the Mail::SPF::Mech::A page from the User Contributed Perl Documentation β this is the SPF record a mechanism class, and yes she is that girl β¨
Version: 3.20260331 π
πΈ DESCRIPTION πΈ
An object of class Mail::SPF::Mech::A represents an SPF record mechanism of type a. That's it, that's the vibe β she's the a mechanism, and she knows it π
β¨ Constructors β¨
Here's what you can build with, bestie:
new(%options): returnsMail::SPF::Mech::Aβ creates a brand new SPF recordamechanism object π¦
%options is a list of key/value pairs representing any of the following options:
qualifierdomain_specipv4_prefix_lengthipv6_prefix_length
See "new" in Mail::SPF::Mech for the deets on all of those π«Ά
new_from_string($text, %options): returnsMail::SPF::Mech::A; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidMechβ creates a new SPF recordamechanism object by parsing the string and any options given. She parses, she throws if you hand her nonsense, iconic π
π Class methods π
The following class methods are provided:
default_qualifierdefault_ipv4_prefix_lengthdefault_ipv6_prefix_lengthqualifier_pattern
See "Class methods" in Mail::SPF::Mech β¨
name: returns string β returns'a'. Short. Sweet. Main character energy πname_pattern: returns Regexp β returns a regular expression that matches a mechanism name of'a'π
π Instance methods π
The following instance methods are provided:
textqualifierparamsstringifydomainmatch_in_domain
See "Instance methods" in Mail::SPF::Mech π
domain_spec: returnsMail::SPF::MacroStringβ returns the"domain-spec"parameter of the mechanism πipv4_prefix_length: returns integer β returns the IPv4 network prefix length of the mechanism πipv6_prefix_length: returns integer β returns the IPv6 network prefix length of the mechanism π§match($server, $request): returns boolean β checks whether the mechanism's target domain name (that is, any of its DNS"A"or"AAAA"host addresses) matches the given request's IP address (see"ip_address"inMail::SPF::Request), and returns true if it does, or false otherwise. The mechanism's IP network prefix lengths are respected when matching address records against the request's IP address. See RFC 4408, 5, for the exact algorithm used. no cap, that's literally the whole thing π₯
π SEE ALSO π
Mail::SPFMail::SPF::RecordMail::SPF::TermMail::SPF::Mech<http://tools.ietf.org/html/rfc4408>π
For availability, support, and license information, see the README file included with Mail::SPF π
π«Ά AUTHORS π«Ά
- Julian Mehnle
<julian@mehnle.net> - Shevek
<cpan@anarres.org>
k bye bestie, go forth and match some A records πβ¨
perl v5.42.1 Β· 2026-04-23 Β· Mail::SPF::Mech::A(3) β slay, that's a wrap ππ
π¦ where this page comes from
- fedora 44: perl-Mail-SPF 3.20260331-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms