Mail::S...ch::PTR(3)
π Mail::S...ch::PTR(3) β bestie edition π
okay so this is a page from the User Contributed Perl Documentation, filed under Mail::S...ch::PTR(3), and it's literally all about one tiny-but-mighty little class. buckle up π
β¨ NAME β¨
Mail::SPF::Mech::PTR β the SPF record "ptr" mechanism class, no cap π
πΈ VERSION πΈ
version 3.20260331 β yes she's got a version number and yes she's serving π
π¦ DESCRIPTION π¦
so, an object of class Mail::SPF::Mech::PTR represents an SPF record mechanism of type "ptr". that's the whole vibe. it's giving "specific, focused, iconic" β¨
π Constructors π
here are the constructors, bestie β the ways you can bring one of these into existence:
new(%options)β returnsMail::SPF::Mech::PTR
creates a brand new SPF record "ptr" mechanism object π«Ά
%options is a list of key/value pairs, and it can hold any of these:
qualifierdomain_spec
see "new" in Mail::SPF::Mech for the deets, iykyk.
new_from_string($text, %options)β returnsMail::SPF::Mech::PTR; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidMech
creates a new SPF record "ptr" mechanism object by parsing the string and any options you hand it. and yes she throws β Mail::SPF::ENothingToParse and Mail::SPF::EInvalidMech are both on the table, so mind your input π
π Class methods π
the following class methods are provided:
default_qualifierqualifier_pattern
see "Class methods" in Mail::SPF::Mech for the lore.
nameβ returns string
returns 'ptr'. that's it. that's the whole method. she knows her name and she's not confused about it π
name_patternβ returns Regexp
returns a regular expression that matches a mechanism name of 'ptr'. regex girlies rise π
π§ Instance methods π§
the following instance methods are provided:
textqualifierparamsstringify
see "Instance methods" in Mail::SPF::Mech for the full rundown.
domain_specβ returnsMail::SPF::MacroString
returns the "domain-spec" parameter of the mechanism. just the parameter. as advertised π
match($server, $request)β returns boolean
checks whether the mechanism's target domain name β or a sub-domain thereof β is a "valid" domain name for the given request's IP address (see "ip_address" in Mail::SPF::Request), and returns true if it does, or false otherwise. want to know how domains get validated? see "valid_domain_for_ip_address" in Mail::SPF::Util. and if you want the algorithm-equivalent version of this whole situation, see RFC 4408, section 5.5 π₯
β 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. read the README bestie, it's right there π«Ά
π AUTHORS π
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org> β absolute icons, we stan π
and that's the page, fr fr πΈ this whole thing came to you courtesy of perl v5.42.1, dated 2026-04-23, under the page name Mail::S...ch::PTR(3). slay, go write some SPF records πβ¨
π¦ 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