line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mail::AuthenticationResults::Token::Separator; |
2
|
|
|
|
|
|
|
# ABSTRACT: Class for modelling AuthenticationResults Header parts detected as separators |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
require 5.008; |
5
|
29
|
|
|
29
|
|
549
|
use strict; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
809
|
|
6
|
29
|
|
|
29
|
|
138
|
use warnings; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1101
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20210915'; # VERSION |
8
|
29
|
|
|
29
|
|
191
|
use Carp; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1586
|
|
9
|
|
|
|
|
|
|
|
10
|
29
|
|
|
29
|
|
160
|
use base 'Mail::AuthenticationResults::Token'; |
|
29
|
|
|
|
|
81
|
|
|
29
|
|
|
|
|
7235
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
731
|
|
|
731
|
1
|
1080
|
my ( $self ) = @_; |
15
|
731
|
|
|
|
|
1786
|
return 'separator'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
125
|
|
|
125
|
1
|
223
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
125
|
|
|
|
|
214
|
my $header = $self->{ 'header' }; |
22
|
125
|
|
|
|
|
180
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
125
|
|
|
|
|
232
|
my $first = substr( $header,0,1 ); |
25
|
125
|
100
|
|
|
|
382
|
croak 'not a separator' if $first ne ';'; |
26
|
|
|
|
|
|
|
|
27
|
124
|
|
|
|
|
313
|
$header = substr( $header,1 ); |
28
|
|
|
|
|
|
|
|
29
|
124
|
|
|
|
|
229
|
$self->{ 'value' } = ';'; |
30
|
124
|
|
|
|
|
203
|
$self->{ 'header' } = $header; |
31
|
|
|
|
|
|
|
|
32
|
124
|
|
|
|
|
274
|
return; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |