line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mail::AuthenticationResults::Token::Assignment; |
2
|
|
|
|
|
|
|
# ABSTRACT: Class for modelling AuthenticationResults Header parts detected as assignments |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
require 5.008; |
5
|
30
|
|
|
30
|
|
665
|
use strict; |
|
30
|
|
|
|
|
63
|
|
|
30
|
|
|
|
|
872
|
|
6
|
30
|
|
|
30
|
|
143
|
use warnings; |
|
30
|
|
|
|
|
56
|
|
|
30
|
|
|
|
|
1138
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20230112'; # VERSION |
8
|
30
|
|
|
30
|
|
159
|
use Carp; |
|
30
|
|
|
|
|
52
|
|
|
30
|
|
|
|
|
1555
|
|
9
|
|
|
|
|
|
|
|
10
|
30
|
|
|
30
|
|
204
|
use base 'Mail::AuthenticationResults::Token'; |
|
30
|
|
|
|
|
65
|
|
|
30
|
|
|
|
|
7953
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
1836
|
|
|
1836
|
1
|
2670
|
my ( $self ) = @_; |
15
|
1836
|
|
|
|
|
4125
|
return 'assignment'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
359
|
|
|
359
|
1
|
602
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
359
|
|
|
|
|
586
|
my $header = $self->{ 'header' }; |
22
|
359
|
|
|
|
|
470
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
359
|
|
|
|
|
620
|
my $first = substr( $header,0,1 ); |
25
|
359
|
100
|
100
|
|
|
1055
|
if ( $first ne '=' && $first ne '.' && $first ne '/' ) { |
|
|
|
100
|
|
|
|
|
26
|
1
|
|
|
|
|
12
|
croak 'not an assignment'; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
358
|
|
|
|
|
765
|
$header = substr( $header,1 ); |
30
|
|
|
|
|
|
|
|
31
|
358
|
|
|
|
|
653
|
$self->{ 'value' } = $first; |
32
|
358
|
|
|
|
|
500
|
$self->{ 'header' } = $header; |
33
|
|
|
|
|
|
|
|
34
|
358
|
|
|
|
|
659
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |