line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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::Head::Delayed; |
10
|
14
|
|
|
14
|
|
102
|
use vars '$VERSION'; |
|
14
|
|
|
|
|
30
|
|
|
14
|
|
|
|
|
774
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.009'; |
12
|
|
|
|
|
|
|
|
13
|
14
|
|
|
14
|
|
84
|
use base 'Mail::Message::Head'; |
|
14
|
|
|
|
|
37
|
|
|
14
|
|
|
|
|
1399
|
|
14
|
|
|
|
|
|
|
|
15
|
14
|
|
|
14
|
|
99
|
use strict; |
|
14
|
|
|
|
|
41
|
|
|
14
|
|
|
|
|
368
|
|
16
|
14
|
|
|
14
|
|
76
|
use warnings; |
|
14
|
|
|
|
|
29
|
|
|
14
|
|
|
|
|
674
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Object::Realize::Later |
19
|
14
|
|
|
|
|
131
|
becomes => 'Mail::Message::Head::Complete', |
20
|
|
|
|
|
|
|
realize => 'load', |
21
|
14
|
|
|
14
|
|
90
|
believe_caller => 1; |
|
14
|
|
|
|
|
42
|
|
22
|
|
|
|
|
|
|
|
23
|
14
|
|
|
14
|
|
8057
|
use Scalar::Util 'weaken'; |
|
14
|
|
|
|
|
33
|
|
|
14
|
|
|
|
|
5921
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
0
|
sub build(@) {shift->log(ERROR => "Cannot build() a delayed header.") } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#------------------------------------------ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub init($$) |
31
|
737
|
|
|
737
|
0
|
8743
|
{ my ($self, $args) = @_; |
32
|
737
|
|
|
|
|
1922
|
$self->SUPER::init($args); |
33
|
|
|
|
|
|
|
|
34
|
737
|
50
|
|
|
|
15703
|
if(defined $args->{message}) |
35
|
0
|
|
|
|
|
0
|
{ $self->{MMHD_message} = $args->{message}; |
36
|
0
|
|
|
|
|
0
|
weaken($self->{MMHD_message}); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
737
|
|
|
|
|
3633
|
$self; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#------------------------------------------ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub isDelayed() {1} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
#------------------------------------------ |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub modified(;$) |
49
|
0
|
0
|
0
|
0
|
1
|
0
|
{ return 0 if @_==1 || !$_[1]; |
50
|
0
|
|
|
|
|
0
|
shift->forceRealize->modified(1); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
#------------------------------------------ |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub isModified() { 0 } |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
#------------------------------------------ |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub isEmpty() { 0 } |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
#------------------------------------------ |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub get($;$) |
65
|
152
|
|
|
152
|
1
|
890
|
{ my $self = shift; |
66
|
152
|
|
|
|
|
320
|
$self->load->get(@_); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
#------------------------------------------ |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub guessBodySize() {undef} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub guessTimestamp() {undef} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
#------------------------------------------ |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
sub read($) |
80
|
0
|
|
|
0
|
1
|
0
|
{ my ($self, $parser, $headtype, $bodytype) = @_; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# $parser->skipHeader not implemented... returns where |
83
|
0
|
|
|
|
|
0
|
$self->{MMH_where} = 0; |
84
|
0
|
|
|
|
|
0
|
$self; |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
406
|
|
|
406
|
1
|
58423
|
sub load() {$_[0] = $_[0]->message->loadHead} |
88
|
0
|
|
|
0
|
1
|
|
sub setNoRealize($) { shift->log(INTERNAL => "Setting field on a delayed?") } |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
1; |