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
|
|
584
|
use strict; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
854
|
|
6
|
29
|
|
|
29
|
|
140
|
use warnings; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1063
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20210914'; # VERSION |
8
|
29
|
|
|
29
|
|
168
|
use Carp; |
|
29
|
|
|
|
|
72
|
|
|
29
|
|
|
|
|
1702
|
|
9
|
|
|
|
|
|
|
|
10
|
29
|
|
|
29
|
|
181
|
use base 'Mail::AuthenticationResults::Token'; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
7355
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
731
|
|
|
731
|
1
|
1236
|
my ( $self ) = @_; |
15
|
731
|
|
|
|
|
1917
|
return 'separator'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
125
|
|
|
125
|
1
|
242
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
125
|
|
|
|
|
227
|
my $header = $self->{ 'header' }; |
22
|
125
|
|
|
|
|
206
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
125
|
|
|
|
|
305
|
my $first = substr( $header,0,1 ); |
25
|
125
|
100
|
|
|
|
370
|
croak 'not a separator' if $first ne ';'; |
26
|
|
|
|
|
|
|
|
27
|
124
|
|
|
|
|
281
|
$header = substr( $header,1 ); |
28
|
|
|
|
|
|
|
|
29
|
124
|
|
|
|
|
242
|
$self->{ 'value' } = ';'; |
30
|
124
|
|
|
|
|
203
|
$self->{ 'header' } = $header; |
31
|
|
|
|
|
|
|
|
32
|
124
|
|
|
|
|
245
|
return; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |