line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2001-2019 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
|
4
|
|
|
4
|
|
24
|
use vars '$VERSION'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
173
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.008'; |
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
|
20
|
use base 'Mail::Message'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
322
|
|
14
|
|
|
|
|
|
|
|
15
|
4
|
|
|
4
|
|
22
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
84
|
|
16
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
101
|
|
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
4
|
|
21
|
use Carp; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
668
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub init($) |
22
|
10
|
|
|
10
|
0
|
70
|
{ my ($self, $args) = @_; |
23
|
|
|
|
|
|
|
|
24
|
10
|
|
|
|
|
23
|
@$args{ qw/modified trusted/ } = (0, 1); |
25
|
10
|
|
|
|
|
36
|
$self->SUPER::init($args); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$self->log(ERROR => "Message-Id is required for a dummy.") |
28
|
10
|
50
|
|
|
|
402
|
unless exists $args->{messageId}; |
29
|
|
|
|
|
|
|
|
30
|
10
|
|
|
|
|
24
|
$self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#------------------------------------------- |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub isDummy() { 1 } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub head() |
39
|
0
|
|
|
0
|
1
|
|
{ shift->log(ERROR => "You cannot take the head of a dummy message"); |
40
|
0
|
|
|
|
|
|
(); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub body() |
44
|
0
|
|
|
0
|
1
|
|
{ shift->log(ERROR => "You cannot take the body of a dummy message"); |
45
|
0
|
|
|
|
|
|
(); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |