.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "Mail::Message::Body::Nested 3" .TH Mail::Message::Body::Nested 3 2025-12-14 "perl v5.42.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Mail::Message::Body::Nested \- body of a message which contains a message .SH INHERITANCE .IX Header "INHERITANCE" .Vb 3 \& Mail::Message::Body::Nested \& is a Mail::Message::Body \& is a Mail::Reporter \& \& Mail::Message::Body also extends Mail::Reporter \& is a Mail::Reporter .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& See Mail::Message::Body \& \& if($body\->isNested) { \& my $nest = $body\->nested; \& $nest\->delete; \& } .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" The body (content) of a message can be stored in various ways. In this manual\-page you find the description of extra functionality you have when a message contains a nested message, like \f(CW\*(C`message/rfc822\*(C'\fR. .PP A nested message is different from a multipart message which contains only one element, because a nested message has a full set of message header fields defined by the RFC882, where a part of a multipart has only a few. But because we do not keep track whether all fields are presented, a \f(CW\*(C`Mail::Message::Part\*(C'\fR is used anyway. .PP \&\fBWARNING:\fR Since 2023, at least outlook started to interpret RFC6533 incorrectly. Bodies of type \*(Aqmessage/rfc822\*(Aq can only be \*(Aqnested\*(Aq, but when they (illegally) have Content\-Transfer\-Encoding, they can now behave like normal message parts (the same as a pdf or image). .PP Extends "DESCRIPTION" in Mail::Message::Body. .SH OVERLOADED .IX Header "OVERLOADED" Extends "OVERLOADED" in Mail::Message::Body. .IP "overload: \fB""""\fR stringification" 4 .IX Item "overload: """" stringification" Inherited, see "OVERLOADED" in Mail::Message::Body .IP "overload: \fB\*(Aq==\*(Aq\fR numerical comparison" 4 .IX Item "overload: '==' numerical comparison" Inherited, see "OVERLOADED" in Mail::Message::Body .IP "overload: \fB@{}\fR addressed as array" 4 .IX Item "overload: @{} addressed as array" Inherited, see "OVERLOADED" in Mail::Message::Body .IP "overload: \fBbool\fR true/false" 4 .IX Item "overload: bool true/false" Inherited, see "OVERLOADED" in Mail::Message::Body .SH METHODS .IX Header "METHODS" Extends "METHODS" in Mail::Message::Body. .SS Constructors .IX Subsection "Constructors" Extends "Constructors" in Mail::Message::Body. .ie n .IP $obj\->\fBclone\fR() 4 .el .IP \f(CW$obj\fR\->\fBclone\fR() 4 .IX Item "$obj->clone()" Inherited, see "Constructors" in Mail::Message::Body .ie n .IP $class\->\fBnew\fR(%options) 4 .el .IP \f(CW$class\fR\->\fBnew\fR(%options) 4 .IX Item "$class->new(%options)" Inherited, see "Constructors" in Mail::Message::Body .Sp .Vb 10 \& \-Option \-\-Defined in \-\-Default \& based_on Mail::Message::Body undef \& charset Mail::Message::Body \*(AqPERL\*(Aq \& 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 \*(AqNATIVE\*(Aq \& file Mail::Message::Body undef \& filename Mail::Message::Body undef \& language Mail::Message::Body undef \& message Mail::Message::Body undef \& mime_type Mail::Message::Body \*(Aqmessage/rfc822\*(Aq \& modified Mail::Message::Body false \& nested undef \& transfer_encoding Mail::Message::Body \*(Aqnone\*(Aq .Ve .RS 4 .ie n .IP "based_on => $body" 2 .el .IP "based_on => \f(CW$body\fR" 2 .IX Item "based_on => $body" .PD 0 .ie n .IP "charset => $charset|\*(AqPERL\*(Aq|" 2 .el .IP "charset => \f(CW$charset\fR|\*(AqPERL\*(Aq|" 2 .IX Item "charset => $charset|'PERL'|" .IP "checked => BOOLEAN" 2 .IX Item "checked => BOOLEAN" .IP "content_id => STRING" 2 .IX Item "content_id => STRING" .IP "data => \e@lines|$text" 2 .IX Item "data => @lines|$text" .IP "description => STRING|$field" 2 .IX Item "description => STRING|$field" .IP "disposition => STRING|$field" 2 .IX Item "disposition => STRING|$field" .IP "eol => \*(AqCR\*(Aq|\*(AqLF\*(Aq|\*(AqCRLF\*(Aq|\*(AqNATIVE\*(Aq" 2 .IX Item "eol => 'CR'|'LF'|'CRLF'|'NATIVE'" .ie n .IP "file => $file|$handle|$io" 2 .el .IP "file => \f(CW$file\fR|$handle|$io" 2 .IX Item "file => $file|$handle|$io" .ie n .IP "filename => $file" 2 .el .IP "filename => \f(CW$file\fR" 2 .IX Item "filename => $file" .IP "language => STRING|\e@lang|$field" 2 .IX Item "language => STRING|@lang|$field" .ie n .IP "message => $message" 2 .el .IP "message => \f(CW$message\fR" 2 .IX Item "message => $message" .IP "mime_type => STRING|$field|$mime" 2 .IX Item "mime_type => STRING|$field|$mime" .IP "modified => BOOLEAN" 2 .IX Item "modified => BOOLEAN" .ie n .IP "nested => $message" 2 .el .IP "nested => \f(CW$message\fR" 2 .IX Item "nested => $message" .PD The \f(CW$message\fR which is encapsulated within this body. .IP "transfer_encoding => STRING|$field" 2 .IX Item "transfer_encoding => STRING|$field" .RE .RS 4 .Sp ยป example: .Sp .Vb 2 \& 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); .Ve .RE .SS Attributes .IX Subsection "Attributes" Extends "Attributes" in Mail::Message::Body. .ie n .IP "$obj\->\fBcharsetDetectAlgorithm\fR( [CODE|undef|METHOD] )" 4 .el .IP "\f(CW$obj\fR\->\fBcharsetDetectAlgorithm\fR( [CODE|undef|METHOD] )" 4 .IX Item "$obj->charsetDetectAlgorithm( [CODE|undef|METHOD] )" Inherited, see "Attributes" in Mail::Message::Body::Encode .SS "Constructing a body" .IX Subsection "Constructing a body" Extends "Constructing a body" in Mail::Message::Body. .ie n .IP "$obj\->\fBattach\fR(@messages, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBattach\fR(@messages, \f(CW%options\fR)" 4 .IX Item "$obj->attach(@messages, %options)" Inherited, see "Constructing a body" in Mail::Message::Body::Construct .ie n .IP $obj\->\fBcharsetDetect\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBcharsetDetect\fR(%options) 4 .IX Item "$obj->charsetDetect(%options)" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBcheck\fR() 4 .el .IP \f(CW$obj\fR\->\fBcheck\fR() 4 .IX Item "$obj->check()" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBconcatenate\fR(@components) 4 .el .IP \f(CW$obj\fR\->\fBconcatenate\fR(@components) 4 .IX Item "$obj->concatenate(@components)" Inherited, see "Constructing a body" in Mail::Message::Body::Construct .ie n .IP $obj\->\fBdecoded\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBdecoded\fR(%options) 4 .IX Item "$obj->decoded(%options)" Inherited, see "Constructing a body" in Mail::Message::Body .ie n .IP $obj\->\fBencode\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBencode\fR(%options) 4 .IX Item "$obj->encode(%options)" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBencoded\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBencoded\fR(%options) 4 .IX Item "$obj->encoded(%options)" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .ie n .IP "$obj\->\fBeol\fR( [\*(AqCR\*(Aq|\*(AqLF\*(Aq|\*(AqCRLF\*(Aq|\*(AqNATIVE\*(Aq] )" 4 .el .IP "\f(CW$obj\fR\->\fBeol\fR( [\*(AqCR\*(Aq|\*(AqLF\*(Aq|\*(AqCRLF\*(Aq|\*(AqNATIVE\*(Aq] )" 4 .IX Item "$obj->eol( ['CR'|'LF'|'CRLF'|'NATIVE'] )" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBforeachLine\fR((CODE)) 4 .el .IP \f(CW$obj\fR\->\fBforeachLine\fR((CODE)) 4 .IX Item "$obj->foreachLine((CODE))" It is NOT possible to call some code for each line of a nested because that would damage the header of the encapsulated message Improves base, see "Constructing a body" in Mail::Message::Body::Construct .ie n .IP $obj\->\fBstripSignature\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBstripSignature\fR(%options) 4 .IX Item "$obj->stripSignature(%options)" Inherited, see "Constructing a body" in Mail::Message::Body::Construct .ie n .IP $obj\->\fBunify\fR($body) 4 .el .IP \f(CW$obj\fR\->\fBunify\fR($body) 4 .IX Item "$obj->unify($body)" Inherited, see "Constructing a body" in Mail::Message::Body::Encode .SS "The body" .IX Subsection "The body" Extends "The body" in Mail::Message::Body. .ie n .IP $obj\->\fBisDelayed\fR() 4 .el .IP \f(CW$obj\fR\->\fBisDelayed\fR() 4 .IX Item "$obj->isDelayed()" Inherited, see "The body" in Mail::Message::Body .ie n .IP $obj\->\fBisMultipart\fR() 4 .el .IP \f(CW$obj\fR\->\fBisMultipart\fR() 4 .IX Item "$obj->isMultipart()" Inherited, see "The body" in Mail::Message::Body .ie n .IP $obj\->\fBisNested\fR() 4 .el .IP \f(CW$obj\fR\->\fBisNested\fR() 4 .IX Item "$obj->isNested()" Inherited, see "The body" in Mail::Message::Body .ie n .IP "$obj\->\fBmessage\fR( [$message] )" 4 .el .IP "\f(CW$obj\fR\->\fBmessage\fR( [$message] )" 4 .IX Item "$obj->message( [$message] )" Inherited, see "The body" in Mail::Message::Body .ie n .IP $obj\->\fBpartNumberOf\fR($part) 4 .el .IP \f(CW$obj\fR\->\fBpartNumberOf\fR($part) 4 .IX Item "$obj->partNumberOf($part)" Inherited, see "The body" in Mail::Message::Body .SS "About the payload" .IX Subsection "About the payload" Extends "About the payload" in Mail::Message::Body. .ie n .IP $obj\->\fBcharset\fR() 4 .el .IP \f(CW$obj\fR\->\fBcharset\fR() 4 .IX Item "$obj->charset()" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBchecked\fR( [BOOLEAN] )" 4 .el .IP "\f(CW$obj\fR\->\fBchecked\fR( [BOOLEAN] )" 4 .IX Item "$obj->checked( [BOOLEAN] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBcontentId\fR( [STRING|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBcontentId\fR( [STRING|$field] )" 4 .IX Item "$obj->contentId( [STRING|$field] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBdescription\fR( [STRING|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBdescription\fR( [STRING|$field] )" 4 .IX Item "$obj->description( [STRING|$field] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBdisposition\fR( [STRING|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBdisposition\fR( [STRING|$field] )" 4 .IX Item "$obj->disposition( [STRING|$field] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBdispositionFilename\fR( [$directory] )" 4 .el .IP "\f(CW$obj\fR\->\fBdispositionFilename\fR( [$directory] )" 4 .IX Item "$obj->dispositionFilename( [$directory] )" Inherited, see "About the payload" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBisBinary\fR() 4 .el .IP \f(CW$obj\fR\->\fBisBinary\fR() 4 .IX Item "$obj->isBinary()" Inherited, see "About the payload" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBisText\fR() 4 .el .IP \f(CW$obj\fR\->\fBisText\fR() 4 .IX Item "$obj->isText()" Inherited, see "About the payload" in Mail::Message::Body::Encode .ie n .IP "$obj\->\fBlanguage\fR( [@langs|\e@langs|$langs|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBlanguage\fR( [@langs|\e@langs|$langs|$field] )" 4 .IX Item "$obj->language( [@langs|@langs|$langs|$field] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP $obj\->\fBmimeType\fR() 4 .el .IP \f(CW$obj\fR\->\fBmimeType\fR() 4 .IX Item "$obj->mimeType()" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP $obj\->\fBnrLines\fR() 4 .el .IP \f(CW$obj\fR\->\fBnrLines\fR() 4 .IX Item "$obj->nrLines()" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP $obj\->\fBsize\fR() 4 .el .IP \f(CW$obj\fR\->\fBsize\fR() 4 .IX Item "$obj->size()" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBtransferEncoding\fR( [STRING|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBtransferEncoding\fR( [STRING|$field] )" 4 .IX Item "$obj->transferEncoding( [STRING|$field] )" Inherited, see "About the payload" in Mail::Message::Body .ie n .IP "$obj\->\fBtype\fR( [STRING|$field] )" 4 .el .IP "\f(CW$obj\fR\->\fBtype\fR( [STRING|$field] )" 4 .IX Item "$obj->type( [STRING|$field] )" Inherited, see "About the payload" in Mail::Message::Body .SS "Access to the payload" .IX Subsection "Access to the payload" Extends "Access to the payload" in Mail::Message::Body. .ie n .IP $obj\->\fBendsOnNewline\fR() 4 .el .IP \f(CW$obj\fR\->\fBendsOnNewline\fR() 4 .IX Item "$obj->endsOnNewline()" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBfile\fR() 4 .el .IP \f(CW$obj\fR\->\fBfile\fR() 4 .IX Item "$obj->file()" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBforNested\fR(CODE) 4 .el .IP \f(CW$obj\fR\->\fBforNested\fR(CODE) 4 .IX Item "$obj->forNested(CODE)" Execute the \f(CW\*(C`CODE\*(C'\fR for the nested message. This returns a new nested body object. Returns \f(CW\*(C`undef\*(C'\fR when the \f(CW\*(C`CODE\*(C'\fR returns \f(CW\*(C`undef\*(C'\fR. .ie n .IP $obj\->\fBlines\fR() 4 .el .IP \f(CW$obj\fR\->\fBlines\fR() 4 .IX Item "$obj->lines()" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBnested\fR() 4 .el .IP \f(CW$obj\fR\->\fBnested\fR() 4 .IX Item "$obj->nested()" Returns the Mail::Message::Part message which is enclosed within this body. .ie n .IP "$obj\->\fBprint\fR( [$fh] )" 4 .el .IP "\f(CW$obj\fR\->\fBprint\fR( [$fh] )" 4 .IX Item "$obj->print( [$fh] )" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBprintEscapedFrom\fR($fh) 4 .el .IP \f(CW$obj\fR\->\fBprintEscapedFrom\fR($fh) 4 .IX Item "$obj->printEscapedFrom($fh)" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBstring\fR() 4 .el .IP \f(CW$obj\fR\->\fBstring\fR() 4 .IX Item "$obj->string()" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBstripTrailingNewline\fR() 4 .el .IP \f(CW$obj\fR\->\fBstripTrailingNewline\fR() 4 .IX Item "$obj->stripTrailingNewline()" Inherited, see "Access to the payload" in Mail::Message::Body .ie n .IP $obj\->\fBwrite\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBwrite\fR(%options) 4 .IX Item "$obj->write(%options)" Inherited, see "Access to the payload" in Mail::Message::Body .SS Internals .IX Subsection "Internals" Extends "Internals" in Mail::Message::Body. .ie n .IP "$any\->\fBaddTransferEncHandler\fR( $name, <$class|$object> )" 4 .el .IP "\f(CW$any\fR\->\fBaddTransferEncHandler\fR( \f(CW$name\fR, <$class|$object> )" 4 .IX Item "$any->addTransferEncHandler( $name, <$class|$object> )" Inherited, see "Internals" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBcontentInfoFrom\fR($head) 4 .el .IP \f(CW$obj\fR\->\fBcontentInfoFrom\fR($head) 4 .IX Item "$obj->contentInfoFrom($head)" Inherited, see "Internals" in Mail::Message::Body .ie n .IP $obj\->\fBcontentInfoTo\fR($head) 4 .el .IP \f(CW$obj\fR\->\fBcontentInfoTo\fR($head) 4 .IX Item "$obj->contentInfoTo($head)" Inherited, see "Internals" in Mail::Message::Body .ie n .IP "$obj\->\fBfileLocation\fR( [$begin, $end] )" 4 .el .IP "\f(CW$obj\fR\->\fBfileLocation\fR( [$begin, \f(CW$end\fR] )" 4 .IX Item "$obj->fileLocation( [$begin, $end] )" Inherited, see "Internals" in Mail::Message::Body .ie n .IP $obj\->\fBgetTransferEncHandler\fR($type) 4 .el .IP \f(CW$obj\fR\->\fBgetTransferEncHandler\fR($type) 4 .IX Item "$obj->getTransferEncHandler($type)" Inherited, see "Internals" in Mail::Message::Body::Encode .ie n .IP $obj\->\fBisModified\fR() 4 .el .IP \f(CW$obj\fR\->\fBisModified\fR() 4 .IX Item "$obj->isModified()" Inherited, see "Internals" in Mail::Message::Body .ie n .IP $obj\->\fBload\fR() 4 .el .IP \f(CW$obj\fR\->\fBload\fR() 4 .IX Item "$obj->load()" Inherited, see "Internals" in Mail::Message::Body .ie n .IP "$obj\->\fBmodified\fR( [BOOLEAN] )" 4 .el .IP "\f(CW$obj\fR\->\fBmodified\fR( [BOOLEAN] )" 4 .IX Item "$obj->modified( [BOOLEAN] )" Inherited, see "Internals" in Mail::Message::Body .ie n .IP "$obj\->\fBmoveLocation\fR( [$distance] )" 4 .el .IP "\f(CW$obj\fR\->\fBmoveLocation\fR( [$distance] )" 4 .IX Item "$obj->moveLocation( [$distance] )" Inherited, see "Internals" in Mail::Message::Body .ie n .IP "$obj\->\fBread\fR( $parser, $head, $bodytype, [$chars, [$lines]] )" 4 .el .IP "\f(CW$obj\fR\->\fBread\fR( \f(CW$parser\fR, \f(CW$head\fR, \f(CW$bodytype\fR, [$chars, [$lines]] )" 4 .IX Item "$obj->read( $parser, $head, $bodytype, [$chars, [$lines]] )" Inherited, see "Internals" in Mail::Message::Body .SS "Error handling" .IX Subsection "Error handling" Extends "Error handling" in Mail::Message::Body. .ie n .IP $obj\->\fBAUTOLOAD\fR() 4 .el .IP \f(CW$obj\fR\->\fBAUTOLOAD\fR() 4 .IX Item "$obj->AUTOLOAD()" Inherited, see "Error handling" in Mail::Message::Body .ie n .IP $obj\->\fBnotImplemented\fR() 4 .el .IP \f(CW$obj\fR\->\fBnotImplemented\fR() 4 .IX Item "$obj->notImplemented()" Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBnotImplemented\fR() 4 .el .IP \f(CW$obj\fR\->\fBnotImplemented\fR() 4 .IX Item "$obj->notImplemented()" Inherited, see "Error handling" in Mail::Reporter .SS Cleanup .IX Subsection "Cleanup" Extends "Cleanup" in Mail::Message::Body. .ie n .IP $obj\->\fBDESTROY\fR() 4 .el .IP \f(CW$obj\fR\->\fBDESTROY\fR() 4 .IX Item "$obj->DESTROY()" Inherited, see "Cleanup" in Mail::Reporter .ie n .IP $obj\->\fBDESTROY\fR() 4 .el .IP \f(CW$obj\fR\->\fBDESTROY\fR() 4 .IX Item "$obj->DESTROY()" Inherited, see "Cleanup" in Mail::Reporter .SH DETAILS .IX Header "DETAILS" Extends "DETAILS" in Mail::Message::Body. .SH DIAGNOSTICS .IX Header "DIAGNOSTICS" .IP "Warning: Content\-Transfer\-Encoding \*(Aq$te\*(Aq requires explicit charset, defaulted to utf\-8." 4 .IX Item "Warning: Content-Transfer-Encoding '$te' requires explicit charset, defaulted to utf-8." Cast by \f(CWencode()\fR .ie n .IP "Error: cannot concatenate element $which" 4 .el .IP "Error: cannot concatenate element \f(CW$which\fR" 4 .IX Item "Error: cannot concatenate element $which" Cast by \f(CWconcatenate()\fR .ie n .IP "Fault: cannot open $file to write body: $!" 4 .el .IP "Fault: cannot open \f(CW$file\fR to write body: $!" 4 .IX Item "Fault: cannot open $file to write body: $!" Cast by \f(CWwrite()\fR .IP "Warning: charset \*(Aq$name\*(Aq is not known." 4 .IX Item "Warning: charset '$name' is not known." The encoding or decoding of a message body encounters a character set which is not understood by Perl\*(Aqs Encode module. Cast by \f(CWencode()\fR .ie n .IP "Error: class $package does not implement method $method." 4 .el .IP "Error: class \f(CW$package\fR does not implement method \f(CW$method\fR." 4 .IX Item "Error: class $package does not implement method $method." Fatal error: the specific \f(CW$package\fR (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast by \f(CWnotImplemented()\fR .ie n .IP "Error: class $package does not implement method $method." 4 .el .IP "Error: class \f(CW$package\fR does not implement method \f(CW$method\fR." 4 .IX Item "Error: class $package does not implement method $method." Fatal error: the specific \f(CW$package\fR (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast by \f(CWnotImplemented()\fR .ie n .IP "Error: data not convertible to a message (type is $class)" 4 .el .IP "Error: data not convertible to a message (type is \f(CW$class\fR)" 4 .IX Item "Error: data not convertible to a message (type is $class)" Cast by \f(CWnew()\fR .ie n .IP "Fault: error closing $file after write body: $!" 4 .el .IP "Fault: error closing \f(CW$file\fR after write body: $!" 4 .IX Item "Fault: error closing $file after write body: $!" Cast by \f(CWwrite()\fR .IP "Warning: no decoder defined for transfer encoding \*(Aq$encoding\*(Aq." 4 .IX Item "Warning: no decoder defined for transfer encoding '$encoding'." The data (message body) is encoded in a way which is not currently understood, therefore no decoding (or recoding) can take place. Cast by \f(CWencode()\fR .IP "Warning: no encoder defined for transfer encoding \*(Aq$encoding\*(Aq." 4 .IX Item "Warning: no encoder defined for transfer encoding '$encoding'." The data (message body) has been decoded, but the required encoding is unknown. The decoded data is returned. Cast by \f(CWencode()\fR .IP "Error: no filename parameter for \fBwrite()\fR body." 4 .IX Item "Error: no filename parameter for write() body." Cast by \f(CWwrite()\fR .IP "Error: part number needs multi\-part or nested." 4 .IX Item "Error: part number needs multi-part or nested." Cast by \f(CWpartNumberOf()\fR .IP "Error: unknown line terminator \*(Aq$eol\*(Aq." 4 .IX Item "Error: unknown line terminator '$eol'." Cast by \f(CWeol()\fR .IP "Error: you cannot use foreachLine on a nested." 4 .IX Item "Error: you cannot use foreachLine on a nested." \&\fBforeachLine()\fR should be used on decoded message bodies only, because it would modify the header of the encapsulated message. which is clearly not acceptable. Cast by \f(CWforeachLine()\fR .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of Mail\-Message version 4.01, built on December 13, 2025. Website: \fIhttp://perl.overmeer.net/CPAN/\fR .SH LICENSE .IX Header "LICENSE" For contributors see file ChangeLog. .PP This software is copyright (c) 2001\-2025 by Mark Overmeer. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.