line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
20
|
|
|
20
|
|
98
|
use strict; |
|
20
|
|
|
|
|
26
|
|
|
20
|
|
|
|
|
414
|
|
2
|
20
|
|
|
20
|
|
80
|
use warnings; |
|
20
|
|
|
|
|
30
|
|
|
20
|
|
|
|
|
4232
|
|
3
|
|
|
|
|
|
|
package Email::Simple::Creator; |
4
|
|
|
|
|
|
|
# ABSTRACT: private helper for building Email::Simple objects |
5
|
|
|
|
|
|
|
$Email::Simple::Creator::VERSION = '2.216'; |
6
|
|
|
|
|
|
|
sub _crlf { |
7
|
48
|
|
|
48
|
|
110
|
"\x0d\x0a"; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _date_header { |
11
|
6
|
|
|
6
|
|
910
|
require Email::Date::Format; |
12
|
6
|
|
|
|
|
5454
|
Email::Date::Format::email_date(); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @CARP_NOT = qw(Email::Simple Email::MIME); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _add_to_header { |
18
|
21
|
|
|
21
|
|
30
|
my ($class, $header, $key, $value) = @_; |
19
|
21
|
100
|
|
|
|
31
|
$value = '' unless defined $value; |
20
|
|
|
|
|
|
|
|
21
|
21
|
100
|
|
|
|
42
|
if ($value =~ s/[\x0a\x0b\x0c\x0d\x85\x{2028}\x{2029}]+/ /g) { |
22
|
1
|
|
|
|
|
220
|
Carp::carp("replaced vertical whitespace in $key header with space; this will become fatal in a future version"); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
21
|
|
|
|
|
74
|
$$header .= Email::Simple::Header->__fold_objless("$key: $value", 78, q{ }, $class->_crlf); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _finalize_header { |
29
|
9
|
|
|
9
|
|
12
|
my ($class, $header) = @_; |
30
|
9
|
|
|
|
|
17
|
$$header .= $class->_crlf; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |