Mail::SPF::Term(3)
π Mail::SPF::Term π
okay so bestie, welcome to Mail::SPF::Term, the SPF record term class β¨ this is the User Contributed Perl Documentation version, and yes she's serving.
πΈ VERSION πΈ
version 3.20260331 β fresh, iconic, no notes π
π¦ DESCRIPTION π¦
so a Mail::SPF::Term object is literally one term inside an SPF record. that's her whole job. she's a piece of the puzzle π§©
BUT β and this is the important part β you cannot instantiate Mail::SPF::Term directly. she's abstract, she's mysterious, she's giving main character who never shows up in person π. if you want an actual object you gotta create an instance of a concrete sub-class instead. periodt.
π Constructor π
here's the constructor bestie, she's abstract so don't come for her:
new(%options)β returnsMail::SPF::TermAbstract β¨ Creates a new SPF record term object.%optionsis a list of key/value pairs β but heads up,Mail::SPF::Termitself specifies no constructor options. zero. nada. she's built different π«Άnew_from_string($text, %options)β returnsMail::SPF::Term; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidTermAbstract β¨ Creates a new SPF record term object by parsing the string and any options given.
vibe check: this one can throwMail::SPF::ENothingToParseorMail::SPF::EInvalidTermat you, so be ready bestie π
π Class methods π
the class methods are serving:
name_patternβ returnsRegexpReturns a regular expression that matches any legal name for an SPF record term. slay, a whole regex, just for the name π
β Instance methods β
and here's what she can do once she exists:
textβ returnsstring; throwsMail::SPF::ENoUnparsedTextReturns the unparsed text of the term. π¦
ngl watch out: she throws a Mail::SPF::ENoUnparsedText exception if the term was created synthetically instead of being parsed, and no text was provided. so likeβ¦ if there was never any text, there's no text to give you. make it make sense π
nameβ returnsstringAbstract β¨ Returns the name of the term. short, sweet, iconic.
π SEE ALSO π
go read your sisters, bestie, they're all connected iykyk:
Mail::SPFMail::SPF::RecordMail::SPF::MechMail::SPF::Mod
and also this, for the lore π:
http://tools.ietf.org/html/rfc4408
for availability, support, and license info, go check the README file included with Mail::SPF π«Ά
π AUTHORS π
give it up for the icons who made this happen:
- Julian Mehnle
<julian@mehnle.net> - Shevek
<cpan@anarres.org>
perl v5.42.1 Β· 2026-04-23 Β· Mail::SPF::Term(3)
and that's the whole page bestie π ty for reading, you ate that fr fr, go parse an SPF record and be iconic πΈβ¨π¦ππ
π¦ 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