1Mail::Message::Body::DeUlsaeyredC(o3n)tributed Perl DocuMmaeinlt:a:tMieosnsage::Body::Delayed(3)
2
3
4

NAME

6       Mail::Message::Body::Delayed - body of a Mail::Message but not read
7       yet.
8

INHERITANCE

10        Mail::Message::Body::Delayed realizes a Mail::Message::Body
11
12        Mail::Message::Body::Delayed
13          is a Mail::Reporter
14

SYNOPSIS

16        See Mail::Message::Body
17

DESCRIPTION

19       Message bodies of this type will be replaced by another type the moment
20       you access the content.  In this documentation you will find the
21       description of how a message body gets delay loaded.
22
23       Extends "DESCRIPTION" in Mail::Reporter.
24

OVERLOADED

26       overload: ""
27           (stringification) Returns the body as string --which will trigger
28           completion-- unless called to produce a string for "Carp".  The
29           latter to avoid deep recursions.
30
31           example: stringification of delayed body
32
33            print $msg->body;   # implicit by print
34
35            my $body = $msg->body;
36            my $x    = "$body"; # explicit by interpolation
37
38       overload: @{}
39           When a body object is used as being an array reference, the lines
40           of the body are returned.  This is the same as using the "lines"
41           method.
42
43       overload: bool
44           Always returns a true value, which is needed to have overloaded
45           objects to be used as in "if($body)".  Otherwise, "if(defined
46           $body)" would be needed to avoid a runtime error.
47

METHODS

49       Extends "METHODS" in Mail::Reporter.
50
51   Constructors
52       Extends "Constructors" in Mail::Reporter.
53
54       Mail::Message::Body::Delayed->new(%options)
55            -Option --Defined in     --Default
56             log      Mail::Reporter   'WARNINGS'
57             message                   <required>
58             trace    Mail::Reporter   'WARNINGS'
59
60           log => LEVEL
61           message => MESSAGE
62             The MESSAGE object which contains this delayed body.
63
64           trace => LEVEL
65
66   The body
67       $obj->message()
68
69   About to the payload
70       $obj->guessSize()
71       $obj->isDelayed()
72       $obj->isModified()
73       $obj->isMultipart()
74       $obj->modified()
75       $obj->nrLines()
76
77   Internals
78       $obj->fileLocation( [$begin, $end] )
79       $obj->load()
80           Returns the loaded version of this body.
81
82       $obj->moveLocation($distance)
83       $obj->read($parser, $head, $bodytype)
84
85   Error handling
86       Extends "Error handling" in Mail::Reporter.
87
88       $obj->AUTOLOAD()
89           Inherited, see "Error handling" in Mail::Reporter
90
91       $obj->addReport($object)
92           Inherited, see "Error handling" in Mail::Reporter
93
94       $obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level,
95       $callback] )
96       Mail::Message::Body::Delayed->defaultTrace( [$level]|[$loglevel,
97       $tracelevel]|[$level, $callback] )
98           Inherited, see "Error handling" in Mail::Reporter
99
100       $obj->errors()
101           Inherited, see "Error handling" in Mail::Reporter
102
103       $obj->log( [$level, [$strings]] )
104       Mail::Message::Body::Delayed->log( [$level, [$strings]] )
105           Inherited, see "Error handling" in Mail::Reporter
106
107       $obj->logPriority($level)
108       Mail::Message::Body::Delayed->logPriority($level)
109           Inherited, see "Error handling" in Mail::Reporter
110
111       $obj->logSettings()
112           Inherited, see "Error handling" in Mail::Reporter
113
114       $obj->notImplemented()
115           Inherited, see "Error handling" in Mail::Reporter
116
117       $obj->report( [$level] )
118           Inherited, see "Error handling" in Mail::Reporter
119
120       $obj->reportAll( [$level] )
121           Inherited, see "Error handling" in Mail::Reporter
122
123       $obj->trace( [$level] )
124           Inherited, see "Error handling" in Mail::Reporter
125
126       $obj->warnings()
127           Inherited, see "Error handling" in Mail::Reporter
128
129   Cleanup
130       Extends "Cleanup" in Mail::Reporter.
131
132       $obj->DESTROY()
133           Inherited, see "Cleanup" in Mail::Reporter
134

DIAGNOSTICS

136       Error: Package $package does not implement $method.
137           Fatal error: the specific package (or one of its superclasses) does
138           not implement this method where it should. This message means that
139           some other related classes do implement this method however the
140           class at hand does not.  Probably you should investigate this and
141           probably inform the author of the package.
142

SEE ALSO

144       This module is part of Mail-Box distribution version 3.009, built on
145       August 18, 2020. Website: http://perl.overmeer.net/CPAN/
146

LICENSE

148       Copyrights 2001-2020 by [Mark Overmeer]. For other contributors see
149       ChangeLog.
150
151       This program is free software; you can redistribute it and/or modify it
152       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
153
154
155
156perl v5.32.1                      2021-01-27   Mail::Message::Body::Delayed(3)
Impressum