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
|
30
|
|
|
30
|
|
595
|
use strict; |
|
30
|
|
|
|
|
65
|
|
|
30
|
|
|
|
|
902
|
|
6
|
30
|
|
|
30
|
|
154
|
use warnings; |
|
30
|
|
|
|
|
72
|
|
|
30
|
|
|
|
|
1140
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20230112'; # VERSION |
8
|
30
|
|
|
30
|
|
157
|
use Carp; |
|
30
|
|
|
|
|
59
|
|
|
30
|
|
|
|
|
1683
|
|
9
|
|
|
|
|
|
|
|
10
|
30
|
|
|
30
|
|
195
|
use base 'Mail::AuthenticationResults::Token'; |
|
30
|
|
|
|
|
94
|
|
|
30
|
|
|
|
|
7183
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
791
|
|
|
791
|
1
|
1223
|
my ( $self ) = @_; |
15
|
791
|
|
|
|
|
1926
|
return 'separator'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
133
|
|
|
133
|
1
|
293
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
133
|
|
|
|
|
269
|
my $header = $self->{ 'header' }; |
22
|
133
|
|
|
|
|
198
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
133
|
|
|
|
|
269
|
my $first = substr( $header,0,1 ); |
25
|
133
|
100
|
|
|
|
375
|
croak 'not a separator' if $first ne ';'; |
26
|
|
|
|
|
|
|
|
27
|
132
|
|
|
|
|
279
|
$header = substr( $header,1 ); |
28
|
|
|
|
|
|
|
|
29
|
132
|
|
|
|
|
264
|
$self->{ 'value' } = ';'; |
30
|
132
|
|
|
|
|
200
|
$self->{ 'header' } = $header; |
31
|
|
|
|
|
|
|
|
32
|
132
|
|
|
|
|
264
|
return; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |