Mail::SPF::Record(3pm) | User Contributed Perl Documentation | Mail::SPF::Record(3pm) |
Mail::SPF::Record - Abstract base class for SPF records
use Mail::SPF::v1::Record; my $record = Mail::SPF::v1::Record->new_from_string("v=spf1 a mx -all");
use Mail::SPF::v2::Record; my $record = Mail::SPF::v2::Record->new( scopes => ['mfrom', 'pra'], terms => [ Mail::SPF::Mech::A->new(), Mail::SPF::Mech::MX->new(), Mail::SPF::Mech::All->new(qualifier => '-') ], global_mods => [ Mail::SPF::Mod::Exp->new(domain_spec => 'spf-exp.example.com') ] );
Mail::SPF::Record is an abstract base class for SPF records. It cannot be instantiated directly. Create an instance of a concrete sub-class instead.
The following constructors are provided:
%options is a list of key/value pairs representing any of the following options:
The following class methods are provided:
This method is abstract and must be implemented by sub-classes of Mail::SPF::Record.
Qualifier | Result code -----------+------------- + | pass - | fail ~ | softfail ? | neutral
The following instance methods are provided:
This method is abstract and must be implemented by sub-classes of Mail::SPF::Record.
If a Mail::SPF::Record object is used as a string, the "stringify" method is used to convert the object into a string.
Mail::SPF, Mail::SPF::v1::Record, Mail::SPF::v2::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 |