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::Convert; |
10
|
4
|
|
|
4
|
|
902
|
use vars '$VERSION'; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
209
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.013'; |
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
|
26
|
use base 'Mail::Reporter'; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
469
|
|
14
|
|
|
|
|
|
|
|
15
|
4
|
|
|
4
|
|
26
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
74
|
|
16
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
18
|
|
|
4
|
|
|
|
|
898
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub init($) |
20
|
3
|
|
|
3
|
0
|
10
|
{ my ($self, $args) = @_; |
21
|
3
|
|
|
|
|
19
|
$self->SUPER::init($args); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$self->{MMC_fields} = $args->{fields} || |
24
|
3
|
|
33
|
|
|
26
|
qr#^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b#i; |
25
|
|
|
|
|
|
|
|
26
|
3
|
|
|
|
|
9
|
$self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
#------------------------------------------ |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub selectedFields($) |
33
|
6
|
|
|
6
|
1
|
18
|
{ my ($self, $head) = @_; |
34
|
6
|
|
|
|
|
21
|
$head->grepNames($self->{MMC_fields}); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
#------------------------------------------ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |