line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
19
|
|
|
19
|
|
3898
|
use 5.008001; |
|
19
|
|
|
|
|
74
|
|
2
|
19
|
|
|
19
|
|
105
|
use strict; |
|
19
|
|
|
|
|
53
|
|
|
19
|
|
|
|
|
466
|
|
3
|
19
|
|
|
19
|
|
97
|
use warnings; |
|
19
|
|
|
|
|
38
|
|
|
19
|
|
|
|
|
1166
|
|
4
|
|
|
|
|
|
|
package Email::MIME::Creator; |
5
|
|
|
|
|
|
|
# ABSTRACT: obsolete do-nothing library |
6
|
|
|
|
|
|
|
$Email::MIME::Creator::VERSION = '1.952'; |
7
|
19
|
|
|
19
|
|
2327
|
use parent q[Email::Simple::Creator]; |
|
19
|
|
|
|
|
1686
|
|
|
19
|
|
|
|
|
115
|
|
8
|
19
|
|
|
19
|
|
8098
|
use Email::MIME; |
|
19
|
|
|
|
|
48
|
|
|
19
|
|
|
|
|
609
|
|
9
|
19
|
|
|
19
|
|
7843
|
use Encode (); |
|
19
|
|
|
|
|
132939
|
|
|
19
|
|
|
|
|
2259
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub _construct_part { |
12
|
14
|
|
|
14
|
|
35
|
my ($class, $body) = @_; |
13
|
|
|
|
|
|
|
|
14
|
14
|
|
|
|
|
47
|
my $is_binary = $body =~ /[\x00\x80-\xFF]/; |
15
|
|
|
|
|
|
|
|
16
|
14
|
100
|
|
|
|
38
|
my $content_type = $is_binary ? 'application/x-binary' : 'text/plain'; |
17
|
|
|
|
|
|
|
|
18
|
14
|
100
|
|
|
|
90
|
Email::MIME->create( |
19
|
|
|
|
|
|
|
attributes => { |
20
|
|
|
|
|
|
|
content_type => $content_type, |
21
|
|
|
|
|
|
|
encoding => ($is_binary ? 'base64' : ''), # be safe |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
body => $body, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
30
|
|
|
|
|
|
|
#pod |
31
|
|
|
|
|
|
|
#pod You don't need to use this module for anything. |
32
|
|
|
|
|
|
|
#pod |
33
|
|
|
|
|
|
|
#pod =cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |