| 1 | # Copyrights 1995-2024 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 the bundle MailTools. Meta-POD processed with | ||||||||||||
| 6 | # OODoc into POD and HTML manual-pages. See README.md for Copyright. | ||||||||||||
| 7 | # Licensed under the same terms as Perl itself. | ||||||||||||
| 8 | |||||||||||||
| 9 | package Mail::Mailer::testfile;{ | ||||||||||||
| 10 | 1 | our $VERSION = '2.22'; | |||||||||||
| 11 | } | ||||||||||||
| 12 | |||||||||||||
| 13 | 1 | ▶ | use base 'Mail::Mailer::rfc822'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | |||||||||||||
| 17 | 1 | ▶ | use Mail::Util qw/mailaddress/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | |||||||||||||
| 19 | 1 | my $num = 0; | |||||||||||
| 20 | sub can_cc() { 0 } | ||||||||||||
| 21 | |||||||||||||
| 22 | sub exec($$$) | ||||||||||||
| 23 | 0 | ▶ | { my ($self, $exe, $args, $to) = @_; | ||||||||||
|
Subroutine
exec: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||
| 24 | |||||||||||||
| 25 | 0 | ▶ | my $outfn = $Mail::Mailer::testfile::config{outfile} || 'mailer.testfile'; | ||||||||||
|
Condition0%0/2
$Mail::Mailer::testfile::config{'outfile'} || 'mailer.testfile'
MC/DC0%0/1
$Mail::Mailer::testfile::config{'outfile'} || 'mailer.testfile'
$Mail::Mailer::testfile::config{'outfile'}
Truth table0%0/2
A
A= $Mail::Mailer::testfile::config{'outfile'}
| |||||||||||||
| 26 | 0 | ▶ | open F, '>>', $outfn | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 27 | or die "Cannot append message to testfile $outfn: $!"; | ||||||||||||
| 28 | |||||||||||||
| 29 | print F "\n===\ntest ", ++$num, " ", (scalar localtime), | ||||||||||||
| 30 | "\nfrom: " . mailaddress(), | ||||||||||||
| 31 | 0 | "\nto: " . join(' ',@{$to}), "\n\n"; | |||||||||||
| 32 | 0 | close F; | |||||||||||
| 33 | |||||||||||||
| 34 | 0 | ▶ | untie *$self if tied *$self; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 35 | 0 | tie *$self, 'Mail::Mailer::testfile::pipe', $self; | |||||||||||
| 36 | 0 | $self; | |||||||||||
| 37 | } | ||||||||||||
| 38 | |||||||||||||
| 39 | 1 | ▶ | sub close { 1 } | ||||||||||
|
Subroutine
close: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 40 | |||||||||||||
| 41 | package Mail::Mailer::testfile::pipe;{ | ||||||||||||
| 42 | 1 | our $VERSION = '2.22'; | |||||||||||
| 43 | } | ||||||||||||
| 44 | |||||||||||||
| 45 | |||||||||||||
| 46 | sub TIEHANDLE | ||||||||||||
| 47 | 0 | ▶ | { my ($class, $self) = @_; | ||||||||||
|
Subroutine
TIEHANDLE: not called CC=1 SCAR=6.9
| |||||||||||||
| 48 | 0 | bless \$self, $class; | |||||||||||
| 49 | } | ||||||||||||
| 50 | |||||||||||||
| 51 | sub PRINT | ||||||||||||
| 52 | 0 | ▶ | { my $self = shift; | ||||||||||
|
Subroutine
PRINT: not called CC=2 SCAR=17.9
| |||||||||||||
| 53 | 0 | ▶ | open F, '>>', $Mail::Mailer::testfile::config{outfile} || 'mailer.testfile'; | ||||||||||
|
Condition0%0/2
$Mail::Mailer::testfile::config{'outfile'} || 'mailer.testfile'
MC/DC0%0/1
$Mail::Mailer::testfile::config{'outfile'} || 'mailer.testfile'
$Mail::Mailer::testfile::config{'outfile'}
Truth table0%0/2
A
A= $Mail::Mailer::testfile::config{'outfile'}
| |||||||||||||
| 54 | 0 | print F @_; | |||||||||||
| 55 | 0 | close F; | |||||||||||
| 56 | } | ||||||||||||
| 57 | |||||||||||||
| 58 | 1 | 1; | |||||||||||