Mail::S...::Record(3)
π Mail::S...::Record β bestie, it's the SPFv1 era π
okay so this is a page from the User Contributed Perl Documentation section of the manual, and we're talking about Mail::SPF::v1::Record β the SPFv1 record class. she's vintage, she's specific, she's literally the blueprint. π
β¨ NAME β¨
Mail::SPF::v1::Record β the SPFv1 record class. that's it, that's her whole job. π
πΈ VERSION πΈ
version 3.20260331
π¦ SYNOPSIS π¦
go peek at Mail::SPF::Record, bestie β this one doesn't do its own little demo.
π DESCRIPTION π
so an object of class Mail::SPF::v1::Record represents an SPFv1 ("v=spf1") record. like, that's the whole personality. it's giving "v=spf1 and nothing else." π
π§ Constructors π§
here are the constructors she comes with:
new(%options): returnsMail::SPF::v1::Recordβ makes you a brand new SPFv1 record object. β¨
%options is a list of key/value pairs, and it can be any of these:
texttermsglobal_mods
β see "new" in Mail::SPF::Record.
scopes
β also see "new" in Mail::SPF::Record. but heads up: since SPFv1 records always implicitly cover the "helo" and "mfrom" scopes, this option has to be exactly ['helo', 'mfrom'] (or ['mfrom', 'helo']) β or you just leave it out entirely. no in-between, no extra scopes, periodt. π«
new_from_string($text, %options): returnsMail::SPF::v1::Recordβ creates a new SPFv1 record object by parsing the string and any options you gave it.
she throws:Mail::SPF::ENothingToParse,Mail::SPF::EInvalidRecordVersion,Mail::SPF::ESyntaxError. so like, bring valid input or don't come at all. π
π Class methods π
the class methods on the menu:
version_tag_pattern: returnsRegexpβ returns a regular expression that matches a version tag of'v=spf1'. yes, that specific one. π―default_qualifierresults_by_qualifier
β see "Class methods" in Mail::SPF::Record.
π Instance methods π
and here's what you get once you have an instance:
textscopestermsglobal_modsglobal_modstringifyeval
β all of these? see "Instance methods" in Mail::SPF::Record.
version_tag: returnsstringβ returns'v=spf1'. short, sweet, iconic. π
π SEE ALSO π
Mail::SPFMail::SPF::RecordMail::SPF::TermMail::SPF::MechMail::SPF::Mod- <http://tools.ietf.org/html/rfc4408>
and for availability, support, and license info? go read the README file that ships with Mail::SPF. it's all in there, fr fr. π
π«Ά AUTHORS π«Ά
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
okay and a lil sign-off because you deserve it: this page is from perl v5.42.1, dated 2026-04-23, and it's filed under Mail::S...::Record(3). slay, go write some SPFv1 records bestie π
β¨π¦
π¦ 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