| 1 | # This code is part of Perl distribution Mail-Message version 4.05. | ||||||||||||
| 2 | # The POD got stripped from this file by OODoc version 3.06. | ||||||||||||
| 3 | # For contributors see file ChangeLog. | ||||||||||||
| 4 | |||||||||||||
| 5 | # This software is copyright (c) 2001-2026 by Mark Overmeer. | ||||||||||||
| 6 | |||||||||||||
| 7 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 8 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 9 | # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later | ||||||||||||
| 10 | |||||||||||||
| 11 | |||||||||||||
| 12 | package Mail::Message::Convert;{ | ||||||||||||
| 13 | 7 | our $VERSION = '4.05'; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 7 | ▶ | use parent 'Mail::Reporter'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | |||||||||||||
| 18 | 7 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 7 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | 7 | ▶ | use Log::Report 'mail-message', import => [ qw// ]; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | |||||||||||||
| 23 | #-------------------- | ||||||||||||
| 24 | |||||||||||||
| 25 | sub init($) | ||||||||||||
| 26 | 7 | ▶ | { my ($self, $args) = @_; | ||||||||||
|
Subroutine
init: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||
| 27 | 7 | $self->SUPER::init($args); | |||||||||||
| 28 | |||||||||||||
| 29 | 7 | ▶ | $self->{MMC_fields} = $args->{fields} || qr#^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b#i; | ||||||||||
|
Condition50%1/2
$args->{'fields'} || qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
MC/DC0%0/1
$args->{'fields'} || qr/^(Resent\-)?(To|From|Cc|Bcc|Subject|Date)\b/i
$args->{'fields'}
Truth table50%1/2
A
A= $args->{'fields'}
| |||||||||||||
| 30 | 7 | $self; | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | #-------------------- | ||||||||||||
| 34 | |||||||||||||
| 35 | sub selectedFields($) | ||||||||||||
| 36 | 6 | ▶ | { my ($self, $head) = @_; | ||||||||||
|
Subroutine
selectedFields: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 37 | 6 | $head->grepNames($self->{MMC_fields}); | |||||||||||
| 38 | } | ||||||||||||
| 39 | |||||||||||||
| 40 | #-------------------- | ||||||||||||
| 41 | |||||||||||||
| 42 | 7 | 1; | |||||||||||