| 1 | # Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. | ||||||||||||||||||||
| 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 | 6 | ▶ | use vars '$VERSION'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 6 | $VERSION = '3.012'; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 6 | ▶ | use base 'Mail::Reporter'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 6 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 6 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | sub init($) | ||||||||||||||||||||
| 20 | 6 | ▶ | { my ($self, $args) = @_; | ||||||||||||||||||
|
Subroutine
init: called CC=2 SCAR=7.4
Pod
undocumented
| |||||||||||||||||||||
| 21 | 6 | $self->SUPER::init($args); | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | $self->{MMC_fields} = $args->{fields} || | ||||||||||||||||||||
| 24 | 6 | ▶ | qr#^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b#i; | ||||||||||||||||||
|
Condition33%1/3
$args->{'fields'} || qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
MC/DC0%0/2
$args->{'fields'} || qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
$args->{'fields'}
qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
Truth table33%1/3
A || B
A= $args->{'fields'}B= qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
| |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 6 | $self; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | #------------------------------------------ | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | sub selectedFields($) | ||||||||||||||||||||
| 33 | 6 | ▶ | { my ($self, $head) = @_; | ||||||||||||||||||
|
Subroutine
selectedFields: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 34 | 6 | $head->grepNames($self->{MMC_fields}); | |||||||||||||||||||
| 35 | } | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | #------------------------------------------ | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 6 | 1; | |||||||||||||||||||