SPF/SenderIPAddrMech.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SPF.pm ↑ Summary
1 #
2 # Mail::SPF::SenderIPAddrMech
3 # Abstract base class for SPF record mechanisms that operate on the SMTP
4 # sender's IP address.
5 #
6 # (C) 2005-2012 Julian Mehnle <julian@mehnle.net>
7 # $Id: SenderIPAddrMech.pm 57 2012-01-30 08:15:31Z julian $
8 #
9 ##############################################################################
10  
11 package Mail::SPF::SenderIPAddrMech;
12  
13 =head1 NAME
14  
15 Mail::SPF::SenderIPAddrMech - Abstract base class for SPF record mechanisms
16 that operate on the SMTP sender's IP address
17  
18 =head1 VERSION
19  
20 version 3.20261105
21  
22 =cut
23  
24 6 our $VERSION = '3.20261105'; # VERSION
25  
26 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 6 ▶use base 'Mail::SPF::Mech';
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 6 ▶use constant TRUE => (0 == 0);
Subroutine BEGIN: called CC=1 SCAR=0.0
32 6 ▶use constant FALSE => not TRUE;
Subroutine BEGIN: called CC=1 SCAR=0.0
33  
34 6 ▶use constant explanation_templates_by_result_code => {
Subroutine BEGIN: called CC=1 SCAR=0.0
35 6 %{__PACKAGE__->SUPER::explanation_templates_by_result_code},
36 pass => "%{c} is authorized to use '%{s}' in '%{_scope}' identity",
37 fail => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity",
38 softfail => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity, however domain is not currently prepared for false failures",
39 neutral => "Domain does not state whether %{c} is authorized to use '%{s}' in '%{_scope}' identity"
40 6 };
41  
42 =head1 DESCRIPTION
43  
44 B<Mail::SPF::SenderIPAddrMech> is an abstract base class for SPF record
45 mechanisms that operate on the SMTP sender's IP address. It cannot be
46 instantiated directly. Create an instance of a concrete sub-class instead.
47  
48 =head2 Constructors
49  
50 See L<Mail::SPF::Mech/Constructors>.
51  
52 =head2 Class methods
53  
54 See L<Mail::SPF::Mech/Class methods>.
55  
56 =head2 Instance methods
57  
58 See L<Mail::SPF::Mech/Instance methods>.
59  
60 =head1 SEE ALSO
61  
62 L<Mail::SPF>, L<Mail::SPF::Record>, L<Mail::SPF::Mech>
63  
64 L<Mail::SPF::Mech::IP4>,
65 L<Mail::SPF::Mech::IP6>,
66 L<Mail::SPF::Mech::A>,
67 L<Mail::SPF::Mech::MX>,
68 L<Mail::SPF::Mech::PTR>
69  
70 L<http://tools.ietf.org/html/rfc4408>
71  
72 For availability, support, and license information, see the README file
73 included with Mail::SPF.
74  
75 =head1 AUTHORS
76  
77 Julian Mehnle <julian@mehnle.net>
78  
79 =cut
80  
81 6 TRUE;
« SPF.pm ↑ Summary