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
|
|
628
|
use strict; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
880
|
|
6
|
29
|
|
|
29
|
|
503
|
use warnings; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
1112
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20210914'; # VERSION |
8
|
29
|
|
|
29
|
|
145
|
use Carp; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1544
|
|
9
|
|
|
|
|
|
|
|
10
|
29
|
|
|
29
|
|
163
|
use base 'Mail::AuthenticationResults::Token'; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
7409
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub is { |
14
|
1701
|
|
|
1701
|
1
|
2397
|
my ( $self ) = @_; |
15
|
1701
|
|
|
|
|
3930
|
return 'assignment'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse { |
19
|
337
|
|
|
337
|
1
|
525
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
337
|
|
|
|
|
549
|
my $header = $self->{ 'header' }; |
22
|
337
|
|
|
|
|
455
|
my $value = q{}; |
23
|
|
|
|
|
|
|
|
24
|
337
|
|
|
|
|
537
|
my $first = substr( $header,0,1 ); |
25
|
337
|
100
|
100
|
|
|
998
|
if ( $first ne '=' && $first ne '.' && $first ne '/' ) { |
|
|
|
100
|
|
|
|
|
26
|
1
|
|
|
|
|
10
|
croak 'not an assignment'; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
336
|
|
|
|
|
912
|
$header = substr( $header,1 ); |
30
|
|
|
|
|
|
|
|
31
|
336
|
|
|
|
|
613
|
$self->{ 'value' } = $first; |
32
|
336
|
|
|
|
|
513
|
$self->{ 'header' } = $header; |
33
|
|
|
|
|
|
|
|
34
|
336
|
|
|
|
|
594
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |