DOKK / manpages / debian 11 / libmail-spf-perl / Mail::SPF::v2::Record.3pm.en
Mail::SPF::v2::Record(3pm) User Contributed Perl Documentation Mail::SPF::v2::Record(3pm)

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

See Mail::SPF::Record.

An object of class Mail::SPF::v2::Record represents a Sender ID ("spf2.0") record.

The following constructors are provided:

Creates a new Sender ID ("spf2.0") record object.

%options is a list of key/value pairs representing any of the following options:

See "new" in Mail::SPF::Record.
Required. See "new" in Mail::SPF::Record. The 'mfrom' and 'pra' scopes are supported. There is no default.
Creates a new Sender ID ("spf2.0") record object by parsing the string and any options given.

The following class methods are provided:

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
    
See "Class methods" in Mail::SPF::Record.

The following instance methods are provided:

See "Instance methods" in Mail::SPF::Record.
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.

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.

Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>

2021-01-02 perl v5.32.0