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
|
29
|
|
|
29
|
|
542
|
use strict; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
804
|
|
6
|
29
|
|
|
29
|
|
137
|
use warnings; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1071
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20210915'; # VERSION |
8
|
29
|
|
|
29
|
|
146
|
use Carp; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1453
|
|
9
|
|
|
|
|
|
|
|
10
|
29
|
|
|
29
|
|
169
|
use base 'Mail::AuthenticationResults::Token'; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
7185
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
1701
|
|
|
1701
|
1
|
2441
|
my ( $self ) = @_; |
15
|
1701
|
|
|
|
|
3901
|
return 'assignment'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
337
|
|
|
337
|
1
|
513
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
337
|
|
|
|
|
491
|
my $header = $self->{ 'header' }; |
22
|
337
|
|
|
|
|
458
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
337
|
|
|
|
|
564
|
my $first = substr( $header,0,1 ); |
25
|
337
|
100
|
100
|
|
|
983
|
if ( $first ne '=' && $first ne '.' && $first ne '/' ) { |
|
|
|
100
|
|
|
|
|
26
|
1
|
|
|
|
|
15
|
croak 'not an assignment'; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
336
|
|
|
|
|
739
|
$header = substr( $header,1 ); |
30
|
|
|
|
|
|
|
|
31
|
336
|
|
|
|
|
617
|
$self->{ 'value' } = $first; |
32
|
336
|
|
|
|
|
508
|
$self->{ 'header' } = $header; |
33
|
|
|
|
|
|
|
|
34
|
336
|
|
|
|
|
600
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |