Authentication/Constants.pm

filter: Statementstmt 100% 217 / 217 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 71 / 71 Podpod n/a totaltotal 100% 288 / 288 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Authentication/App/Blocker/App.pm ↑ Summary Authentication/Exception.pm »
1 package Mail::Milter::Authentication::Constants;
2 # ABSTRACT: Define and export useful constants
3 146 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 146 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 146 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 ##use Mail::Milter::Authentication::Pragmas;
7 # ABSTRACT: Common constants
8 146 our $VERSION = '4.20261116'; # VERSION
9 146 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 ## no critic [Modules::ProhibitAutomaticExportation]
13  
14 # Syslog Constants
15  
16 146 ▶use constant LOG_DEBUG => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 146 ▶use constant LOG_INFO => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 146 ▶use constant LOG_NOTICE => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 146 ▶use constant LOG_WARNING => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 146 ▶use constant LOG_ERR => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 146 ▶use constant LOG_CRIT => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 146 ▶use constant LOG_ALERT => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 146 ▶use constant LOG_EMERG => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 146 ▶use constant LOG_MAIL => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 # Sendmail Constants
27  
28 146 ▶use constant SMFIA_UNKNOWN => 'U';
Subroutine BEGIN: called CC=1 SCAR=0.0
29 146 ▶use constant SMFIA_UNIX => 'L';
Subroutine BEGIN: called CC=1 SCAR=0.0
30 146 ▶use constant SMFIA_INET => '4';
Subroutine BEGIN: called CC=1 SCAR=0.0
31 146 ▶use constant SMFIA_INET6 => '6';
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 146 ▶use constant SMFIC_ABORT => 'A';
Subroutine BEGIN: called CC=1 SCAR=0.0
34 146 ▶use constant SMFIC_BODY => 'B';
Subroutine BEGIN: called CC=1 SCAR=0.0
35 146 ▶use constant SMFIC_CONNECT => 'C';
Subroutine BEGIN: called CC=1 SCAR=0.0
36 146 ▶use constant SMFIC_MACRO => 'D';
Subroutine BEGIN: called CC=1 SCAR=0.0
37 146 ▶use constant SMFIC_BODYEOB => 'E';
Subroutine BEGIN: called CC=1 SCAR=0.0
38 146 ▶use constant SMFIC_HELO => 'H';
Subroutine BEGIN: called CC=1 SCAR=0.0
39 146 ▶use constant SMFIC_HEADER => 'L';
Subroutine BEGIN: called CC=1 SCAR=0.0
40 146 ▶use constant SMFIC_MAIL => 'M';
Subroutine BEGIN: called CC=1 SCAR=0.0
41 146 ▶use constant SMFIC_EOH => 'N';
Subroutine BEGIN: called CC=1 SCAR=0.0
42 146 ▶use constant SMFIC_OPTNEG => 'O';
Subroutine BEGIN: called CC=1 SCAR=0.0
43 146 ▶use constant SMFIC_RCPT => 'R';
Subroutine BEGIN: called CC=1 SCAR=0.0
44 146 ▶use constant SMFIC_QUIT => 'Q';
Subroutine BEGIN: called CC=1 SCAR=0.0
45 146 ▶use constant SMFIC_DATA => 'T';
Subroutine BEGIN: called CC=1 SCAR=0.0
46 146 ▶use constant SMFIC_UNKNOWN => 'U';
Subroutine BEGIN: called CC=1 SCAR=0.0
47  
48 146 ▶use constant SMFIR_ADDRCPT => '+';
Subroutine BEGIN: called CC=1 SCAR=0.0
49 146 ▶use constant SMFIR_DELRCPT => '-';
Subroutine BEGIN: called CC=1 SCAR=0.0
50 146 ▶use constant SMFIR_ACCEPT => 'a';
Subroutine BEGIN: called CC=1 SCAR=0.0
51 146 ▶use constant SMFIR_REPLBODY => 'b';
Subroutine BEGIN: called CC=1 SCAR=0.0
52 146 ▶use constant SMFIR_CONTINUE => 'c';
Subroutine BEGIN: called CC=1 SCAR=0.0
53 146 ▶use constant SMFIR_DISCARD => 'd';
Subroutine BEGIN: called CC=1 SCAR=0.0
54 146 ▶use constant SMFIR_ADDHEADER => 'h';
Subroutine BEGIN: called CC=1 SCAR=0.0
55 146 ▶use constant SMFIR_INSHEADER => 'i';
Subroutine BEGIN: called CC=1 SCAR=0.0
56 146 ▶use constant SMFIR_CHGHEADER => 'm';
Subroutine BEGIN: called CC=1 SCAR=0.0
57 146 ▶use constant SMFIR_PROGRESS => 'p';
Subroutine BEGIN: called CC=1 SCAR=0.0
58 146 ▶use constant SMFIR_QUARANTINE => 'q';
Subroutine BEGIN: called CC=1 SCAR=0.0
59 146 ▶use constant SMFIR_REJECT => 'r';
Subroutine BEGIN: called CC=1 SCAR=0.0
60 146 ▶use constant SMFIR_SETSENDER => 's';
Subroutine BEGIN: called CC=1 SCAR=0.0
61 146 ▶use constant SMFIR_TEMPFAIL => 't';
Subroutine BEGIN: called CC=1 SCAR=0.0
62 146 ▶use constant SMFIR_REPLYCODE => 'y';
Subroutine BEGIN: called CC=1 SCAR=0.0
63  
64 146 ▶use constant SMFIP_NOCONNECT => 0x01;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 146 ▶use constant SMFIP_NOHELO => 0x02;
Subroutine BEGIN: called CC=1 SCAR=0.0
66 146 ▶use constant SMFIP_NOMAIL => 0x04;
Subroutine BEGIN: called CC=1 SCAR=0.0
67 146 ▶use constant SMFIP_NORCPT => 0x08;
Subroutine BEGIN: called CC=1 SCAR=0.0
68 146 ▶use constant SMFIP_NOBODY => 0x10;
Subroutine BEGIN: called CC=1 SCAR=0.0
69 146 ▶use constant SMFIP_NOHDRS => 0x20;
Subroutine BEGIN: called CC=1 SCAR=0.0
70 146 ▶use constant SMFIP_NOEOH => 0x40;
Subroutine BEGIN: called CC=1 SCAR=0.0
71 146 ▶use constant SMFIP_NONE => 0x7F;
Subroutine BEGIN: called CC=1 SCAR=0.0
72 146 ▶use constant SMFIP_HDR_LEADSPC => 0x100000;
Subroutine BEGIN: called CC=1 SCAR=0.0
73  
74 146 ▶use constant SMFIS_CONTINUE => 100;
Subroutine BEGIN: called CC=1 SCAR=0.0
75 146 ▶use constant SMFIS_REJECT => 101;
Subroutine BEGIN: called CC=1 SCAR=0.0
76 146 ▶use constant SMFIS_DISCARD => 102;
Subroutine BEGIN: called CC=1 SCAR=0.0
77 146 ▶use constant SMFIS_ACCEPT => 103;
Subroutine BEGIN: called CC=1 SCAR=0.0
78 146 ▶use constant SMFIS_TEMPFAIL => 104;
Subroutine BEGIN: called CC=1 SCAR=0.0
79  
80 146 ▶use constant SMFIF_ADDHDRS => 0x01;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 146 ▶use constant SMFIF_CHGBODY => 0x02;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 146 ▶use constant SMFIF_ADDRCPT => 0x04;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 146 ▶use constant SMFIF_DELRCPT => 0x08;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 146 ▶use constant SMFIF_CHGHDRS => 0x10;
Subroutine BEGIN: called CC=1 SCAR=0.0
85 146 ▶use constant SMFIF_MODBODY => SMFIF_CHGBODY;
Subroutine BEGIN: called CC=1 SCAR=0.0
86 146 ▶use constant SMFIF_QUARANTINE => 0x20;
Subroutine BEGIN: called CC=1 SCAR=0.0
87 146 ▶use constant SMFIF_SETSENDER => 0x40;
Subroutine BEGIN: called CC=1 SCAR=0.0
88  
89 146 ▶use constant SMFI_V1_ACTS => SMFIF_ADDHDRS|SMFIF_CHGBODY|SMFIF_ADDRCPT|SMFIF_DELRCPT;
Subroutine BEGIN: called CC=1 SCAR=0.0
90 146 ▶use constant SMFI_V2_ACTS => SMFI_V1_ACTS|SMFIF_CHGHDRS;
Subroutine BEGIN: called CC=1 SCAR=0.0
91 146 ▶use constant SMFI_CURR_ACTS => SMFI_V2_ACTS;
Subroutine BEGIN: called CC=1 SCAR=0.0
92  
93 146 our @EXPORT = qw(
94 LOG_DEBUG
95 LOG_INFO
96 LOG_NOTICE
97 LOG_WARNING
98 LOG_ERR
99 LOG_CRIT
100 LOG_ALERT
101 LOG_EMERG
102 LOG_MAIL
103 SMFIA_UNKNOWN
104 SMFIA_UNIX
105 SMFIA_INET
106 SMFIA_INET6
107 SMFIC_ABORT
108 SMFIC_BODY
109 SMFIC_CONNECT
110 SMFIC_MACRO
111 SMFIC_BODYEOB
112 SMFIC_HELO
113 SMFIC_HEADER
114 SMFIC_MAIL
115 SMFIC_EOH
116 SMFIC_OPTNEG
117 SMFIC_RCPT
118 SMFIC_QUIT
119 SMFIC_DATA
120 SMFIC_UNKNOWN
121 SMFIR_ADDRCPT
122 SMFIR_DELRCPT
123 SMFIR_ACCEPT
124 SMFIR_REPLBODY
125 SMFIR_CONTINUE
126 SMFIR_DISCARD
127 SMFIR_ADDHEADER
128 SMFIR_INSHEADER
129 SMFIR_CHGHEADER
130 SMFIR_PROGRESS
131 SMFIR_QUARANTINE
132 SMFIR_REJECT
133 SMFIR_SETSENDER
134 SMFIR_TEMPFAIL
135 SMFIR_REPLYCODE
136 SMFIP_NOCONNECT
137 SMFIP_NOHELO
138 SMFIP_NOMAIL
139 SMFIP_NORCPT
140 SMFIP_NOBODY
141 SMFIP_NOHDRS
142 SMFIP_NOEOH
143 SMFIP_NONE
144 SMFIP_HDR_LEADSPC
145 SMFIS_CONTINUE
146 SMFIS_REJECT
147 SMFIS_DISCARD
148 SMFIS_ACCEPT
149 SMFIS_TEMPFAIL
150 SMFIF_ADDHDRS
151 SMFIF_CHGBODY
152 SMFIF_ADDRCPT
153 SMFIF_DELRCPT
154 SMFIF_CHGHDRS
155 SMFIF_MODBODY
156 SMFIF_QUARANTINE
157 SMFIF_SETSENDER
158 SMFI_V1_ACTS
159 SMFI_V2_ACTS
160 SMFI_CURR_ACTS
161 );
162 146 our @EXPORT_OK = ( @EXPORT );
163 146 our %EXPORT_TAGS = ( 'all' => [ @EXPORT_OK ] );
164  
165 146 1;
166  
167 __END__
« Authentication/App/Blocker/App.pm ↑ Summary Authentication/Exception.pm »