File Coverage

blib/lib/Mail/SPF/SenderIPAddrMech.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 25 25 100.0


line stmt bran cond sub pod time code
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
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             =cut
19              
20 1     1   8 use warnings;
  1         2  
  1         26  
21 1     1   5 use strict;
  1         2  
  1         32  
22              
23 1     1   7 use base 'Mail::SPF::Mech';
  1         2  
  1         81  
24              
25 1     1   6 use constant TRUE => (0 == 0);
  1         2  
  1         52  
26 1     1   6 use constant FALSE => not TRUE;
  1         2  
  1         62  
27              
28 1         72 use constant explanation_templates_by_result_code => {
29 1         1 %{__PACKAGE__->SUPER::explanation_templates_by_result_code},
30             pass => "%{c} is authorized to use '%{s}' in '%{_scope}' identity",
31             fail => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity",
32             softfail => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity, however domain is not currently prepared for false failures",
33             neutral => "Domain does not state whether %{c} is authorized to use '%{s}' in '%{_scope}' identity"
34 1     1   5 };
  1         2  
35              
36             =head1 DESCRIPTION
37              
38             B is an abstract base class for SPF record
39             mechanisms that operate on the SMTP sender's IP address. It cannot be
40             instantiated directly. Create an instance of a concrete sub-class instead.
41              
42             =head2 Constructors
43              
44             See L.
45              
46             =head2 Class methods
47              
48             See L.
49              
50             =head2 Instance methods
51              
52             See L.
53              
54             =head1 SEE ALSO
55              
56             L, L, L
57              
58             L,
59             L,
60             L,
61             L,
62             L
63              
64             L
65              
66             For availability, support, and license information, see the README file
67             included with Mail::SPF.
68              
69             =head1 AUTHORS
70              
71             Julian Mehnle
72              
73             =cut
74              
75             TRUE;