| 1 | # Copyrights 2001-2020 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.02. | ||||||||||
| 5 | # This code is part of distribution Mail-Box. 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::Dummy; | ||||||||||
| 10 | 1 | ▶ | use vars '$VERSION'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | $VERSION = '3.009'; | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use base 'Mail::Message'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | sub init($) | ||||||||||
| 22 | 0 | ▶ | { my ($self, $args) = @_; | ||||||||
|
Subroutine
init: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 23 | |||||||||||
| 24 | 0 | @$args{ qw/modified trusted/ } = (0, 1); | |||||||||
| 25 | 0 | $self->SUPER::init($args); | |||||||||
| 26 | |||||||||||
| 27 | $self->log(ERROR => "Message-Id is required for a dummy.") | ||||||||||
| 28 | 0 | ▶ | unless exists $args->{messageId}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | $self; | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | #------------------------------------------- | ||||||||||
| 34 | |||||||||||
| 35 | sub isDummy() { 1 } | ||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | sub head() | ||||||||||
| 39 | 0 | ▶ | { shift->log(ERROR => "You cannot take the head of a dummy message"); | ||||||||
|
Subroutine
head: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | 0 | (); | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | sub body() | ||||||||||
| 44 | 0 | ▶ | { shift->log(ERROR => "You cannot take the body of a dummy message"); | ||||||||
|
Subroutine
body: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | 0 | (); | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | 1 | 1; | |||||||||