See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
based_on | Mail::Message::Body | undef |
charset | Mail::Message::Body |
|
checked | Mail::Message::Body | <false> |
content_id | Mail::Message::Body | undef |
data | Mail::Message::Body | undef |
description | Mail::Message::Body | undef |
disposition | Mail::Message::Body | undef |
eol | Mail::Message::Body |
|
file | Mail::Message::Body | undef |
log | Mail::Reporter |
|
message | Mail::Message::Body | undef |
mime_type | Mail::Message::Body |
|
modified | Mail::Message::Body | <false> |
nested | undef | |
trace | Mail::Reporter |
|
transfer_encoding | Mail::Message::Body |
|
my $msg = $folder->message(3); my $encaps= Mail::Message::Body::Nested->new(nested => $msg); # The body will be coerced into a message, which lacks a few # lines but we do not bother. my $intro = Mail::Message::Body->new(data => ...); my $body = Mail::Message::Body::Nested->new(nested => $intro);
It is NOT possible to call some code for each line of a nested because that would damage the header of the encapsulated message
foreachLine() should be used on decoded message bodies only, because it would modify the header of the encapsulated message. which is clearly not acceptible.
Execute the CODE for the nested message. This returns a new
nested body object. Returns undef
when the CODE returns undef
.
Returns the Mail::Message::Part message which is enclosed within this body.