Mail::S...Include(3)
π NAME π
Bestie, meet Mail::SPF::Mech::Include β it's the class that represents an SPF record include mechanism. (Yes, this is the <pink>Mail::S...Include(3)</pink> page from the User Contributed Perl Documentation, we're just vibing with it.)
β¨ VERSION β¨
This is version 3.20260331, and yes it's giving very current, very slay. π
πΈ DESCRIPTION πΈ
So basically, when you make an object of class Mail::SPF::Mech::Include, you've got yourself an SPF record mechanism of type include. That's the whole vibe. π¦
π Constructors
Here's the constructors on offer:
new(%options): returnsMail::SPF::Mech::Includeβ it makes you a brand-new SPF recordincludemechanism object, no cap.%optionsis a list of key/value pairs, and it can hold any of the following:qualifierdomain_spec
For both of those, go peek at "new" in Mail::SPF::Mech.
new_from_string($text, %options): returnsMail::SPF::Mech::Include; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidMechβ this one builds you a fresh SPF recordincludemechanism object by parsing the string plus whatever options you handed over. β
π¦ Class methods
These are the class methods, iconic behavior only:
default_qualifierqualifier_pattern
Both of those? Check "Class methods" in Mail::SPF::Mech, bestie.
name: returns string β literally just hands you back'include'. That's it. That's the whole method. π«Άname_pattern: returns Regexp β gives you back a regular expression that matches a mechanism name of'include'.
π Instance methods
And here's your instance methods, the moment you've been waiting for:
textqualifierparamsstringify
All four live their truth over at "Instance methods" in Mail::SPF::Mech.
domain_spec: returnsMail::SPF::MacroStringβ returns thedomain-specparameter of the mechanism. Simple, clean, obsessed. β¨match($server, $request): returns boolean β okay so this one does a recursive SPF check, using the SPF server and request objects you passed in, and it substitutes the mechanism's target domain name in place of the request's authority domain. Then the result of that recursive SPF check gets translated like this:passβ return truefailβ return falsesoftfailβ return falseneutralβ return falsenoneβ throw PermErrorpermerrorβ throw PermErrortemperrorβ throw TempError
Heads up: if you want the exact algorithm being used here, it's spelled out in RFC 4408, 5.2. Go read it, it's right there. π
π SEE ALSO π
Go give these a look, they're all in the group chat:
Mail::SPFMail::SPF::RecordMail::SPF::TermMail::SPF::Mech<http://tools.ietf.org/html/rfc4408>
And for availability, support, and license information, see the README file included with Mail::SPF. π§
π AUTHORS π
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org> π
Okay that's the whole page, we ate and left no crumbs. Sending you off with the receipts: this was perl v5.42.1, dated 2026-04-23, and it's the Mail::S...Include(3) page from the one and only User Contributed Perl Documentation. Byeeee ππ
π¦ 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