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