Mail::SPF::v2::Record3pm
Sender id ("spf2.0") record class
Usage
See Mail::SPF::Record.
Version
version 3.20260331
Overview
An object of class Mail::SPF::v2::Record represents a Sender ID ("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.
%optionsis a list of key/value pairs representing any of the following options:text
terms
global_mods-
See "new" in Mail::SPF::Record.
scopes-
Required. 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.
Class methods
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/mfromspf2.0/praspf2.0/mfrom,praspf2.0/pra,mfrom
default_qualifier
results_by_qualifier-
See "Class methods" in Mail::SPF::Record.
Instance methods
The following instance methods are provided:
text
scopes
terms
global_mods
global_mod
stringify
eval-
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.
Releases
10 releases since Debian 5.0 (Lenny); the text changed 7 times.