line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2001-2022 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
|
|
720
|
use vars '$VERSION'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
213
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.012'; |
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
|
20
|
use base 'Mail::Reporter'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
402
|
|
14
|
|
|
|
|
|
|
|
15
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
95
|
|
16
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
735
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub init($) |
20
|
3
|
|
|
3
|
0
|
8
|
{ my ($self, $args) = @_; |
21
|
3
|
|
|
|
|
13
|
$self->SUPER::init($args); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$self->{MMC_fields} = $args->{fields} || |
24
|
3
|
|
33
|
|
|
18
|
qr#^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b#i; |
25
|
|
|
|
|
|
|
|
26
|
3
|
|
|
|
|
6
|
$self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
#------------------------------------------ |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub selectedFields($) |
33
|
6
|
|
|
6
|
1
|
10
|
{ my ($self, $head) = @_; |
34
|
6
|
|
|
|
|
24
|
$head->grepNames($self->{MMC_fields}); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
#------------------------------------------ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |