SPF/SenderIPAddrMech.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 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.20250505
21  
22 =cut
23  
24 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 1 ▶use base 'Mail::SPF::Mech';
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 1 ▶use constant TRUE => (0 == 0);
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use constant FALSE => not TRUE;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 use constant explanation_templates_by_result_code => {
33 1 %{__PACKAGE__->SUPER::explanation_templates_by_result_code},
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 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 =head1 DESCRIPTION
41  
42 B<Mail::SPF::SenderIPAddrMech> 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<Mail::SPF::Mech/Constructors>.
49  
50 =head2 Class methods
51  
52 See L<Mail::SPF::Mech/Class methods>.
53  
54 =head2 Instance methods
55  
56 See L<Mail::SPF::Mech/Instance methods>.
57  
58 =head1 SEE ALSO
59  
60 L<Mail::SPF>, L<Mail::SPF::Record>, L<Mail::SPF::Mech>
61  
62 L<Mail::SPF::Mech::IP4>,
63 L<Mail::SPF::Mech::IP6>,
64 L<Mail::SPF::Mech::A>,
65 L<Mail::SPF::Mech::MX>,
66 L<Mail::SPF::Mech::PTR>
67  
68 L<http://tools.ietf.org/html/rfc4408>
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 <julian@mehnle.net>
76  
77 =cut
78  
79 1 TRUE;
« SPF.pm ↑ Summary