logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Mail::SPF::v2::Record - Sender ID ("spf2.0") record class

Authors

Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org> perl v5.40.1 2025-05-10 Mail::SPF::v2::Record(3pm)

Description

An object of class Mail::SPF::v2::Record represents a SenderID ("spf2.0") record. Constructors The following constructors are provided: new(%options): returns Mail::SPF::v2::Record Creates a new Sender ID ("spf2.0") record object. %options is a list of key/value pairs representing any of the following options: texttermsglobal_mods See "new" in Mail::SPF::Record. scopesRequired. See "new" in Mail::SPF::Record. The 'mfrom' and 'pra' scopes are supported. There is no default. new_from_string($text,%options): returns Mail::SPF::v2::Record; throws Mail::SPF::ENothingToParse, Mail::SPF::EInvalidRecordVersion, Mail::SPF::ESyntaxError Creates a new Sender ID ("spf2.0") record object by parsing the string and any options given. Classmethods The following class methods are provided: version_tag_pattern: returns Regexp Returns a regular expression that matches a version tag of 'spf2.0/' plus a comma-separated list of any of the 'mfrom' and 'pra' scopes. The following are valid version tags: spf2.0/mfrom spf2.0/pra spf2.0/mfrom,pra spf2.0/pra,mfrom default_qualifierresults_by_qualifier See "Class methods" in Mail::SPF::Record. Instancemethods The following instance methods are provided: textscopestermsglobal_modsglobal_modstringifyeval See "Instance methods" in Mail::SPF::Record. version_tag: returns string Returns 'spf2.0/' plus a comma-separated list of the scopes of the record. See "version_tag_pattern" for a list of possible return values.

Name

Mail::SPF::v2::Record - Sender ID ("spf2.0") record class

See Also

Mail::SPF, Mail::SPF::Record, Mail::SPF::Term, Mail::SPF::Mech, Mail::SPF::Mod <http://tools.ietf.org/html/rfc4408> For availability, support, and license information, see the README file included with Mail::SPF.

Synopsis

See Mail::SPF::Record.

Version

version 3.20250505

See Also