| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# This code is part of Perl distribution Mail-Box version 4.01. |
|
2
|
|
|
|
|
|
|
# The POD got stripped from this file by OODoc version 3.05. |
|
3
|
|
|
|
|
|
|
# For contributors see file ChangeLog. |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# This software is copyright (c) 2001-2025 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::Dummy;{ |
|
13
|
|
|
|
|
|
|
our $VERSION = '4.01'; |
|
14
|
|
|
|
|
|
|
} |
|
15
|
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
|
29
|
use parent 'Mail::Message'; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
4
|
|
|
4
|
|
369
|
use strict; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
136
|
|
|
19
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
|
4
|
|
|
|
|
113
|
|
|
|
4
|
|
|
|
|
244
|
|
|
20
|
|
|
|
|
|
|
|
|
21
|
4
|
|
|
4
|
|
22
|
use Log::Report 'mail-box', import => [ qw/__x error/ ]; |
|
|
4
|
|
|
|
|
7
|
|
|
|
4
|
|
|
|
|
29
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
#-------------------- |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub init($) |
|
26
|
10
|
|
|
10
|
0
|
96
|
{ my ($self, $args) = @_; |
|
27
|
|
|
|
|
|
|
|
|
28
|
10
|
|
|
|
|
38
|
@$args{ qw/modified trusted/ } = (0, 1); |
|
29
|
10
|
|
|
|
|
64
|
$self->SUPER::init($args); |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
exists $args->{messageId} |
|
32
|
10
|
50
|
|
|
|
552
|
or error __x"the messageId is required for a dummy."; |
|
33
|
|
|
|
|
|
|
|
|
34
|
10
|
|
|
|
|
32
|
$self; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub isDummy() { 1 } |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub head(;$) { error __x"you cannot take the head of a dummy message." } |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
|
43
|
0
|
|
|
0
|
1
|
|
sub body(;$) { error __x"you cannot take the body of a dummy message." } |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |