| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# Copyrights 2001-2023 by [Mark Overmeer ]. |
|
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
|
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
|
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.03. |
|
5
|
|
|
|
|
|
|
# This code is part of distribution Mail-Message. Meta-POD processed with |
|
6
|
|
|
|
|
|
|
# OODoc into POD and HTML manual-pages. See README.md |
|
7
|
|
|
|
|
|
|
# Copyright Mark Overmeer. Licensed under the same terms as Perl itself. |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Mail::Message::TransferEnc::QuotedPrint; |
|
10
|
3
|
|
|
3
|
|
1870
|
use vars '$VERSION'; |
|
|
3
|
|
|
|
|
8
|
|
|
|
3
|
|
|
|
|
167
|
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.013'; |
|
12
|
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
28
|
use base 'Mail::Message::TransferEnc'; |
|
|
3
|
|
|
|
|
5
|
|
|
|
3
|
|
|
|
|
999
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
20
|
use strict; |
|
|
3
|
|
|
|
|
7
|
|
|
|
3
|
|
|
|
|
68
|
|
|
16
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
|
3
|
|
|
|
|
5
|
|
|
|
3
|
|
|
|
|
70
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
3
|
|
|
3
|
|
507
|
use MIME::QuotedPrint; |
|
|
3
|
|
|
|
|
1446
|
|
|
|
3
|
|
|
|
|
701
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub name() { 'quoted-printable' } |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub check($@) |
|
24
|
0
|
|
|
0
|
1
|
0
|
{ my ($self, $body, %args) = @_; |
|
25
|
0
|
|
|
|
|
0
|
$body; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub decode($@) |
|
30
|
2
|
|
|
2
|
1
|
12
|
{ my ($self, $body, %args) = @_; |
|
31
|
|
|
|
|
|
|
|
|
32
|
2
|
|
66
|
|
|
9
|
my $bodytype = $args{result_type} || ref $body; |
|
33
|
|
|
|
|
|
|
|
|
34
|
2
|
|
|
|
|
9
|
$bodytype->new |
|
35
|
|
|
|
|
|
|
( based_on => $body |
|
36
|
|
|
|
|
|
|
, transfer_encoding => 'none' |
|
37
|
|
|
|
|
|
|
, data => decode_qp($body->string) |
|
38
|
|
|
|
|
|
|
); |
|
39
|
|
|
|
|
|
|
} |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub encode($@) |
|
43
|
2
|
|
|
2
|
1
|
15
|
{ my ($self, $body, %args) = @_; |
|
44
|
|
|
|
|
|
|
|
|
45
|
2
|
|
66
|
|
|
9
|
my $bodytype = $args{result_type} || ref $body; |
|
46
|
|
|
|
|
|
|
|
|
47
|
2
|
|
|
|
|
11
|
$bodytype->new |
|
48
|
|
|
|
|
|
|
( based_on => $body |
|
49
|
|
|
|
|
|
|
, transfer_encoding => 'quoted-printable' |
|
50
|
|
|
|
|
|
|
, data => encode_qp($body->string) |
|
51
|
|
|
|
|
|
|
); |
|
52
|
|
|
|
|
|
|
} |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |