.\" -*- 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::Box::Message::Destructed 3" .TH Mail::Box::Message::Destructed 3 2026-04-11 "perl v5.42.2" "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::Box::Message::Destructed \- a destructed message .SH INHERITANCE .IX Header "INHERITANCE" .Vb 4 \& Mail::Box::Message::Destructed \& is a Mail::Box::Message \& is a Mail::Message \& is a Mail::Reporter .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& $folder\->message(3)\->destruct; .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" When a message folder is read, each message will be parsed into Perl structures. Especially the header structure can consume a huge amount of memory (message bodies can be moved to external temporary files). Destructed messages have forcefully cleaned\-up all header and body information, and are therefore much smaller. Some useful information is still in the object. .PP BE WARNED: once a message is destructed, it cannot be revived. Destructing enforces irreversable deletion from the folder. If you have a folder opened for read\-only, the message will stay in that folder, but otherwise it may be deleted. .PP Extends "DESCRIPTION" in Mail::Box::Message. .SH METHODS .IX Header "METHODS" Extends "METHODS" in Mail::Box::Message. .SS Constructors .IX Subsection "Constructors" Extends "Constructors" in Mail::Box::Message. .ie n .IP $obj\->\fBclone\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBclone\fR(%options) 4 .IX Item "$obj->clone(%options)" Inherited, see "Constructors" in Mail::Message .ie n .IP "$class\->\fBnew\fR($msgid, %options)" 4 .el .IP "\f(CW$class\fR\->\fBnew\fR($msgid, \f(CW%options\fR)" 4 .IX Item "$class->new($msgid, %options)" You cannot instantiate a destructed message object. Destruction is done by calling \fBMail::Box::Message::destruct()\fR. Improves base, see "Constructors" in Mail::Reporter .Sp .Vb 10 \& \-Option \-\-Defined in \-\-Default \& body Mail::Message undef \& body_type Mail::Box::Message \& deleted Mail::Message false \& field_type Mail::Message undef \& folder Mail::Box::Message \& head Mail::Message undef \& head_type Mail::Message Mail::Message::Head::Complete \& labels Mail::Message +{} \& messageId Mail::Message undef \& message_id Mail::Message undef \& modified Mail::Message false \& size Mail::Box::Message undef \& trusted Mail::Message false .Ve .RS 4 .ie n .IP "body => $object" 2 .el .IP "body => \f(CW$object\fR" 2 .IX Item "body => $object" .PD 0 .IP "body_type => CODE|$class" 2 .IX Item "body_type => CODE|$class" .IP "deleted => BOOLEAN" 2 .IX Item "deleted => BOOLEAN" .ie n .IP "field_type => $class" 2 .el .IP "field_type => \f(CW$class\fR" 2 .IX Item "field_type => $class" .ie n .IP "folder => $folder" 2 .el .IP "folder => \f(CW$folder\fR" 2 .IX Item "folder => $folder" .ie n .IP "head => $object" 2 .el .IP "head => \f(CW$object\fR" 2 .IX Item "head => $object" .ie n .IP "head_type => $class" 2 .el .IP "head_type => \f(CW$class\fR" 2 .IX Item "head_type => $class" .IP "labels => \e@pairs|\e%settings" 2 .IX Item "labels => @pairs|%settings" .ie n .IP "messageId => $id" 2 .el .IP "messageId => \f(CW$id\fR" 2 .IX Item "messageId => $id" .ie n .IP "message_id => $id" 2 .el .IP "message_id => \f(CW$id\fR" 2 .IX Item "message_id => $id" .IP "modified => BOOLEAN" 2 .IX Item "modified => BOOLEAN" .ie n .IP "size => $bytes" 2 .el .IP "size => \f(CW$bytes\fR" 2 .IX Item "size => $bytes" .IP "trusted => BOOLEAN" 2 .IX Item "trusted => BOOLEAN" .PD .RE .RS 4 .RE .SS Attributes .IX Subsection "Attributes" Extends "Attributes" in Mail::Box::Message. .ie n .IP $obj\->\fBbodyType\fR() 4 .el .IP \f(CW$obj\fR\->\fBbodyType\fR() 4 .IX Item "$obj->bodyType()" Inherited, see "Attributes" in Mail::Message .ie n .IP $obj\->\fBfieldType\fR() 4 .el .IP \f(CW$obj\fR\->\fBfieldType\fR() 4 .IX Item "$obj->fieldType()" Inherited, see "Attributes" in Mail::Message .ie n .IP "$obj\->\fBfolder\fR( [$folder] )" 4 .el .IP "\f(CW$obj\fR\->\fBfolder\fR( [$folder] )" 4 .IX Item "$obj->folder( [$folder] )" Inherited, see "Attributes" in Mail::Box::Message .ie n .IP $obj\->\fBheadType\fR() 4 .el .IP \f(CW$obj\fR\->\fBheadType\fR() 4 .IX Item "$obj->headType()" Inherited, see "Attributes" in Mail::Message .ie n .IP $obj\->\fBmessageId\fR() 4 .el .IP \f(CW$obj\fR\->\fBmessageId\fR() 4 .IX Item "$obj->messageId()" Inherited, see "Attributes" in Mail::Message .ie n .IP "$obj\->\fBseqnr\fR( [$integer] )" 4 .el .IP "\f(CW$obj\fR\->\fBseqnr\fR( [$integer] )" 4 .IX Item "$obj->seqnr( [$integer] )" Inherited, see "Attributes" in Mail::Box::Message .SS "Constructing a message" .IX Subsection "Constructing a message" Extends "Constructing a message" in Mail::Box::Message. .ie n .IP "$obj\->\fBbounce\fR( [<$rg_object|%options>] )" 4 .el .IP "\f(CW$obj\fR\->\fBbounce\fR( [<$rg_object|%options>] )" 4 .IX Item "$obj->bounce( [<$rg_object|%options>] )" Inherited, see "Constructing a message" in Mail::Message::Construct::Bounce .ie n .IP "$class\->\fBbuild\fR( [$message|$part|$body], @fields, %options )" 4 .el .IP "\f(CW$class\fR\->\fBbuild\fR( [$message|$part|$body], \f(CW@fields\fR, \f(CW%options\fR )" 4 .IX Item "$class->build( [$message|$part|$body], @fields, %options )" Inherited, see "Constructing a message" in Mail::Message::Construct::Build .ie n .IP "$class\->\fBbuildFromBody\fR($body, [$head], $headers)" 4 .el .IP "\f(CW$class\fR\->\fBbuildFromBody\fR($body, [$head], \f(CW$headers\fR)" 4 .IX Item "$class->buildFromBody($body, [$head], $headers)" Inherited, see "Constructing a message" in Mail::Message::Construct::Build .ie n .IP $obj\->\fBforward\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBforward\fR(%options) 4 .IX Item "$obj->forward(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardAttach\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBforwardAttach\fR(%options) 4 .IX Item "$obj->forwardAttach(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardEncapsulate\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBforwardEncapsulate\fR(%options) 4 .IX Item "$obj->forwardEncapsulate(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardInline\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBforwardInline\fR(%options) 4 .IX Item "$obj->forwardInline(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardNo\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBforwardNo\fR(%options) 4 .IX Item "$obj->forwardNo(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardPostlude\fR() 4 .el .IP \f(CW$obj\fR\->\fBforwardPostlude\fR() 4 .IX Item "$obj->forwardPostlude()" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardPrelude\fR() 4 .el .IP \f(CW$obj\fR\->\fBforwardPrelude\fR() 4 .IX Item "$obj->forwardPrelude()" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP $obj\->\fBforwardSubject\fR(STRING) 4 .el .IP \f(CW$obj\fR\->\fBforwardSubject\fR(STRING) 4 .IX Item "$obj->forwardSubject(STRING)" Inherited, see "Constructing a message" in Mail::Message::Construct::Forward .ie n .IP "$class\->\fBread\fR($fh|$text|\e$text|\e@lines, %options)" 4 .el .IP "\f(CW$class\fR\->\fBread\fR($fh|$text|\e$text|\e@lines, \f(CW%options\fR)" 4 .IX Item "$class->read($fh|$text|$text|@lines, %options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Read .ie n .IP $obj\->\fBrebuild\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBrebuild\fR(%options) 4 .IX Item "$obj->rebuild(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Rebuild .ie n .IP $obj\->\fBreply\fR(%options) 4 .el .IP \f(CW$obj\fR\->\fBreply\fR(%options) 4 .IX Item "$obj->reply(%options)" Inherited, see "Constructing a message" in Mail::Message::Construct::Reply .ie n .IP "$obj\->\fBreplyPrelude\fR( [STRING|$field|$address|\e@addrs|\e@fields] )" 4 .el .IP "\f(CW$obj\fR\->\fBreplyPrelude\fR( [STRING|$field|$address|\e@addrs|\e@fields] )" 4 .IX Item "$obj->replyPrelude( [STRING|$field|$address|@addrs|@fields] )" Inherited, see "Constructing a message" in Mail::Message::Construct::Reply .ie n .IP $any\->\fBreplySubject\fR(STRING) 4 .el .IP \f(CW$any\fR\->\fBreplySubject\fR(STRING) 4 .IX Item "$any->replySubject(STRING)" Inherited, see "Constructing a message" in Mail::Message::Construct::Reply .SS "The message" .IX Subsection "The message" Extends "The message" in Mail::Box::Message. .ie n .IP $obj\->\fBcontainer\fR() 4 .el .IP \f(CW$obj\fR\->\fBcontainer\fR() 4 .IX Item "$obj->container()" Inherited, see "The message" in Mail::Message .ie n .IP "$obj\->\fBcopyTo\fR($folder, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBcopyTo\fR($folder, \f(CW%options\fR)" 4 .IX Item "$obj->copyTo($folder, %options)" Inherited, see "The message" in Mail::Box::Message .ie n .IP $obj\->\fBendsOnNewline\fR() 4 .el .IP \f(CW$obj\fR\->\fBendsOnNewline\fR() 4 .IX Item "$obj->endsOnNewline()" Inherited, see "The message" in Mail::Message .ie n .IP $obj\->\fBisDummy\fR() 4 .el .IP \f(CW$obj\fR\->\fBisDummy\fR() 4 .IX Item "$obj->isDummy()" Inherited, see "The message" in Mail::Message .ie n .IP $obj\->\fBisPart\fR() 4 .el .IP \f(CW$obj\fR\->\fBisPart\fR() 4 .IX Item "$obj->isPart()" Inherited, see "The message" in Mail::Message .ie n .IP "$obj\->\fBmoveTo\fR($folder, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBmoveTo\fR($folder, \f(CW%options\fR)" 4 .IX Item "$obj->moveTo($folder, %options)" Inherited, see "The message" in Mail::Box::Message .ie n .IP $obj\->\fBpartNumber\fR() 4 .el .IP \f(CW$obj\fR\->\fBpartNumber\fR() 4 .IX Item "$obj->partNumber()" Inherited, see "The message" in Mail::Message .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 "The message" in Mail::Message .ie n .IP "$obj\->\fBsend\fR( [$mailer], %options )" 4 .el .IP "\f(CW$obj\fR\->\fBsend\fR( [$mailer], \f(CW%options\fR )" 4 .IX Item "$obj->send( [$mailer], %options )" Inherited, see "The message" in Mail::Message .ie n .IP $obj\->\fBsize\fR() 4 .el .IP \f(CW$obj\fR\->\fBsize\fR() 4 .IX Item "$obj->size()" Inherited, see "The message" in Mail::Message .ie n .IP $obj\->\fBtoplevel\fR() 4 .el .IP \f(CW$obj\fR\->\fBtoplevel\fR() 4 .IX Item "$obj->toplevel()" Inherited, see "The message" in Mail::Message .ie n .IP "$obj\->\fBwrite\fR( [$fh] )" 4 .el .IP "\f(CW$obj\fR\->\fBwrite\fR( [$fh] )" 4 .IX Item "$obj->write( [$fh] )" Inherited, see "The message" in Mail::Message .SS "The header" .IX Subsection "The header" Extends "The header" in Mail::Box::Message. .ie n .IP $obj\->\fBbcc\fR() 4 .el .IP \f(CW$obj\fR\->\fBbcc\fR() 4 .IX Item "$obj->bcc()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBcc\fR() 4 .el .IP \f(CW$obj\fR\->\fBcc\fR() 4 .IX Item "$obj->cc()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBdate\fR() 4 .el .IP \f(CW$obj\fR\->\fBdate\fR() 4 .IX Item "$obj->date()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBdestinations\fR() 4 .el .IP \f(CW$obj\fR\->\fBdestinations\fR() 4 .IX Item "$obj->destinations()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBfrom\fR() 4 .el .IP \f(CW$obj\fR\->\fBfrom\fR() 4 .IX Item "$obj->from()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBget\fR($fieldname) 4 .el .IP \f(CW$obj\fR\->\fBget\fR($fieldname) 4 .IX Item "$obj->get($fieldname)" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBguessTimestamp\fR() 4 .el .IP \f(CW$obj\fR\->\fBguessTimestamp\fR() 4 .IX Item "$obj->guessTimestamp()" Inherited, see "The header" in Mail::Message .ie n .IP "$obj\->\fBhead\fR( [$head] )" 4 .el .IP "\f(CW$obj\fR\->\fBhead\fR( [$head] )" 4 .IX Item "$obj->head( [$head] )" When \f(CW\*(C`undef\*(C'\fR is specified for \f(CW$head\fR, no change has to take place and the method returns silently. In all other cases, this method will complain that the header has been removed. Improves base, see "The header" in Mail::Message .ie n .IP $obj\->\fBnrLines\fR() 4 .el .IP \f(CW$obj\fR\->\fBnrLines\fR() 4 .IX Item "$obj->nrLines()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBsender\fR() 4 .el .IP \f(CW$obj\fR\->\fBsender\fR() 4 .IX Item "$obj->sender()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBstudy\fR($fieldname) 4 .el .IP \f(CW$obj\fR\->\fBstudy\fR($fieldname) 4 .IX Item "$obj->study($fieldname)" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBsubject\fR() 4 .el .IP \f(CW$obj\fR\->\fBsubject\fR() 4 .IX Item "$obj->subject()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBtimestamp\fR() 4 .el .IP \f(CW$obj\fR\->\fBtimestamp\fR() 4 .IX Item "$obj->timestamp()" Inherited, see "The header" in Mail::Message .ie n .IP $obj\->\fBto\fR() 4 .el .IP \f(CW$obj\fR\->\fBto\fR() 4 .IX Item "$obj->to()" Inherited, see "The header" in Mail::Message .SS "The body" .IX Subsection "The body" Extends "The body" in Mail::Box::Message. .ie n .IP "$obj\->\fBbody\fR( [$body] )" 4 .el .IP "\f(CW$obj\fR\->\fBbody\fR( [$body] )" 4 .IX Item "$obj->body( [$body] )" When \f(CW\*(C`undef\*(C'\fR is specified for \f(CW$body\fR, no change has to take place and the method returns silently. In all other cases, this method will complain that the body data has been removed. Improves base, see "The body" in Mail::Message .ie n .IP $obj\->\fBcontentType\fR() 4 .el .IP \f(CW$obj\fR\->\fBcontentType\fR() 4 .IX Item "$obj->contentType()" Inherited, see "The body" in Mail::Message .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 "The body" in Mail::Message .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 "The body" in Mail::Message .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 .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 .ie n .IP "$obj\->\fBparts\fR( [<\*(AqALL\*(Aq|\*(AqACTIVE\*(Aq|\*(AqDELETED\*(Aq|\*(AqRECURSE\*(Aq|$filter>] )" 4 .el .IP "\f(CW$obj\fR\->\fBparts\fR( [<\*(AqALL\*(Aq|\*(AqACTIVE\*(Aq|\*(AqDELETED\*(Aq|\*(AqRECURSE\*(Aq|$filter>] )" 4 .IX Item "$obj->parts( [<'ALL'|'ACTIVE'|'DELETED'|'RECURSE'|$filter>] )" Inherited, see "The body" in Mail::Message .SS Flags .IX Subsection "Flags" Extends "Flags" in Mail::Box::Message. .ie n .IP $obj\->\fBdelete\fR() 4 .el .IP \f(CW$obj\fR\->\fBdelete\fR() 4 .IX Item "$obj->delete()" Inherited, see "Flags" in Mail::Message .ie n .IP "$obj\->\fBdeleted\fR( [BOOLEAN] )" 4 .el .IP "\f(CW$obj\fR\->\fBdeleted\fR( [BOOLEAN] )" 4 .IX Item "$obj->deleted( [BOOLEAN] )" Inherited, see "Flags" in Mail::Message .ie n .IP $obj\->\fBisDeleted\fR() 4 .el .IP \f(CW$obj\fR\->\fBisDeleted\fR() 4 .IX Item "$obj->isDeleted()" Inherited, see "Flags" in Mail::Message .ie n .IP $obj\->\fBisModified\fR() 4 .el .IP \f(CW$obj\fR\->\fBisModified\fR() 4 .IX Item "$obj->isModified()" Inherited, see "Flags" in Mail::Message .ie n .IP $obj\->\fBlabel\fR($label|PAIRS) 4 .el .IP \f(CW$obj\fR\->\fBlabel\fR($label|PAIRS) 4 .IX Item "$obj->label($label|PAIRS)" It is possible to delete a destructed message, but not to undelete it. Improves base, see "Flags" in Mail::Message .ie n .IP $obj\->\fBlabels\fR() 4 .el .IP \f(CW$obj\fR\->\fBlabels\fR() 4 .IX Item "$obj->labels()" Inherited, see "Flags" in Mail::Message .ie n .IP $obj\->\fBlabelsToStatus\fR() 4 .el .IP \f(CW$obj\fR\->\fBlabelsToStatus\fR() 4 .IX Item "$obj->labelsToStatus()" Inherited, see "Flags" in Mail::Message .ie n .IP "$obj\->\fBmodified\fR( [$flag] )" 4 .el .IP "\f(CW$obj\fR\->\fBmodified\fR( [$flag] )" 4 .IX Item "$obj->modified( [$flag] )" Inherited, see "Flags" in Mail::Message .ie n .IP $obj\->\fBstatusToLabels\fR() 4 .el .IP \f(CW$obj\fR\->\fBstatusToLabels\fR() 4 .IX Item "$obj->statusToLabels()" Inherited, see "Flags" in Mail::Message .SS "The whole message as text" .IX Subsection "The whole message as text" Extends "The whole message as text" in Mail::Box::Message. .ie n .IP $obj\->\fBfile\fR() 4 .el .IP \f(CW$obj\fR\->\fBfile\fR() 4 .IX Item "$obj->file()" Inherited, see "The whole message as text" in Mail::Message::Construct::Text .ie n .IP $obj\->\fBlines\fR() 4 .el .IP \f(CW$obj\fR\->\fBlines\fR() 4 .IX Item "$obj->lines()" Inherited, see "The whole message as text" in Mail::Message::Construct::Text .ie n .IP "$obj\->\fBprintStructure\fR( [$fh|undef],[$indent] )" 4 .el .IP "\f(CW$obj\fR\->\fBprintStructure\fR( [$fh|undef],[$indent] )" 4 .IX Item "$obj->printStructure( [$fh|undef],[$indent] )" Inherited, see "The whole message as text" in Mail::Message::Construct::Text .ie n .IP $obj\->\fBstring\fR() 4 .el .IP \f(CW$obj\fR\->\fBstring\fR() 4 .IX Item "$obj->string()" Inherited, see "The whole message as text" in Mail::Message::Construct::Text .SS Internals .IX Subsection "Internals" Extends "Internals" in Mail::Box::Message. .ie n .IP $obj\->\fBclonedFrom\fR() 4 .el .IP \f(CW$obj\fR\->\fBclonedFrom\fR() 4 .IX Item "$obj->clonedFrom()" Inherited, see "Internals" in Mail::Message .ie n .IP $class\->\fBcoerce\fR($message) 4 .el .IP \f(CW$class\fR\->\fBcoerce\fR($message) 4 .IX Item "$class->coerce($message)" Coerce a Mail::Box::Message into destruction. Improves base, see "Internals" in Mail::Message .Sp ยป example: of coercion to death .Sp .Vb 2 \& Mail::Box::Message::Destructed\->coerce($folder\->message(1)); \& $folder\->message(1)\->destruct; # same \& \& my $msg = $folder\->message(1); \& Mail::Box::Message::Destructed\->coerce($msg); \& $msg\->destruct; # same .Ve .ie n .IP $obj\->\fBdiskDelete\fR() 4 .el .IP \f(CW$obj\fR\->\fBdiskDelete\fR() 4 .IX Item "$obj->diskDelete()" Inherited, see "Internals" in Mail::Box::Message .ie n .IP $obj\->\fBisDelayed\fR() 4 .el .IP \f(CW$obj\fR\->\fBisDelayed\fR() 4 .IX Item "$obj->isDelayed()" Inherited, see "Internals" in Mail::Message .ie n .IP $obj\->\fBisTrusted\fR() 4 .el .IP \f(CW$obj\fR\->\fBisTrusted\fR() 4 .IX Item "$obj->isTrusted()" Inherited, see "Internals" in Mail::Message .ie n .IP "$obj\->\fBreadBody\fR( $parser, $head, [$bodytype] )" 4 .el .IP "\f(CW$obj\fR\->\fBreadBody\fR( \f(CW$parser\fR, \f(CW$head\fR, [$bodytype] )" 4 .IX Item "$obj->readBody( $parser, $head, [$bodytype] )" Inherited, see "Internals" in Mail::Box::Message .ie n .IP "$obj\->\fBreadFromParser\fR( $parser, [$bodytype] )" 4 .el .IP "\f(CW$obj\fR\->\fBreadFromParser\fR( \f(CW$parser\fR, [$bodytype] )" 4 .IX Item "$obj->readFromParser( $parser, [$bodytype] )" Inherited, see "Internals" in Mail::Message .ie n .IP "$obj\->\fBreadHead\fR( $parser, [$class] )" 4 .el .IP "\f(CW$obj\fR\->\fBreadHead\fR( \f(CW$parser\fR, [$class] )" 4 .IX Item "$obj->readHead( $parser, [$class] )" Inherited, see "Internals" in Mail::Message .ie n .IP "$obj\->\fBrecursiveRebuildPart\fR($part, %options)" 4 .el .IP "\f(CW$obj\fR\->\fBrecursiveRebuildPart\fR($part, \f(CW%options\fR)" 4 .IX Item "$obj->recursiveRebuildPart($part, %options)" Inherited, see "Internals" in Mail::Message::Construct::Rebuild .ie n .IP $obj\->\fBstoreBody\fR($body) 4 .el .IP \f(CW$obj\fR\->\fBstoreBody\fR($body) 4 .IX Item "$obj->storeBody($body)" Inherited, see "Internals" in Mail::Message .ie n .IP "$obj\->\fBtakeMessageId\fR( [STRING] )" 4 .el .IP "\f(CW$obj\fR\->\fBtakeMessageId\fR( [STRING] )" 4 .IX Item "$obj->takeMessageId( [STRING] )" Inherited, see "Internals" in Mail::Message .SS "Error handling" .IX Subsection "Error handling" Extends "Error handling" in Mail::Box::Message. .ie n .IP $obj\->\fBAUTOLOAD\fR() 4 .el .IP \f(CW$obj\fR\->\fBAUTOLOAD\fR() 4 .IX Item "$obj->AUTOLOAD()" Inherited, see "METHODS" in Mail::Message::Construct .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 "$any\->\fBshortSize\fR( [$value] )" 4 .el .IP "\f(CW$any\fR\->\fBshortSize\fR( [$value] )" 4 .IX Item "$any->shortSize( [$value] )" Inherited, see "Error handling" in Mail::Message .ie n .IP $obj\->\fBshortString\fR() 4 .el .IP \f(CW$obj\fR\->\fBshortString\fR() 4 .IX Item "$obj->shortString()" Inherited, see "Error handling" in Mail::Message .SS Cleanup .IX Subsection "Cleanup" Extends "Cleanup" in Mail::Box::Message. .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\->\fBdestruct\fR() 4 .el .IP \f(CW$obj\fR\->\fBdestruct\fR() 4 .IX Item "$obj->destruct()" Inherited, see "Cleanup" in Mail::Box::Message .SH DETAILS .IX Header "DETAILS" Extends "DETAILS" in Mail::Box::Message. .SH DIAGNOSTICS .IX Header "DIAGNOSTICS" .ie n .IP "Error: Cannot include forward source as $kind." 4 .el .IP "Error: Cannot include forward source as \f(CW$kind\fR." 4 .IX Item "Error: Cannot include forward source as $kind." Unknown alternative for the forward(include). Valid choices are \&\f(CW\*(C`NO\*(C'\fR, \f(CW\*(C`INLINE\*(C'\fR, \f(CW\*(C`ATTACH\*(C'\fR, and \f(CW\*(C`ENCAPSULATE\*(C'\fR. Cast by \f(CWforward()\fR .IP "Error: No default mailer found to send message." 4 .IX Item "Error: No default mailer found to send message." The message \fBsend()\fR mechanism had not enough information to automatically find a mail transfer agent to sent this message. Specify a mailer explicitly using the \f(CW\*(C`via\*(C'\fR options. Cast by \f(CWsend()\fR .IP "Error: You cannot take the head/body of a destructed message" 4 .IX Item "Error: You cannot take the head/body of a destructed message" The message originated from a folder, but its memory has been freed\-up forcefully by means of \fBMail::Box::Message::destruct()\fR. Apparently, your program still tries to get to the header or body data after this destruction, which is not possible. Cast by \f(CWhead()\fR .ie n .IP "Error: cannot include reply source as $kind." 4 .el .IP "Error: cannot include reply source as \f(CW$kind\fR." 4 .IX Item "Error: cannot include reply source as $kind." Unknown alternative for the \f(CW\*(C`include\*(C'\fR option of \fBreply()\fR. Valid choices are \f(CW\*(C`NO\*(C'\fR, \f(CW\*(C`INLINE\*(C'\fR, and \f(CW\*(C`ATTACH\*(C'\fR. Cast by \f(CWreply()\fR .ie n .IP "Error: cannot read message from a $source." 4 .el .IP "Error: cannot read message from a \f(CW$source\fR." 4 .IX Item "Error: cannot read message from a $source." Cast by \f(CWread()\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 .IP "Error: destructed message can not be undeleted" 4 .IX Item "Error: destructed message can not be undeleted" Once a message is destructed, it can not be revived. Destruction is an optimization in memory usage: if you need an undelete functionality, then you can not use \fBMail::Box::Message::destruct()\fR. Cast by \f(CWlabel()\fR .ie n .IP "Error: destructed message has no labels except \*(Aqdeleted\*(Aq, requested is $label." 4 .el .IP "Error: destructed message has no labels except \*(Aqdeleted\*(Aq, requested is \f(CW$label\fR." 4 .IX Item "Error: destructed message has no labels except 'deleted', requested is $label." Cast by \f(CWlabel()\fR .ie n .IP "Error: destructed message has no labels except \*(Aqdeleted\*(Aq, trying to set @labels." 4 .el .IP "Error: destructed message has no labels except \*(Aqdeleted\*(Aq, trying to set \f(CW@labels\fR." 4 .IX Item "Error: destructed message has no labels except 'deleted', trying to set @labels." Cast by \f(CWlabel()\fR .IP "Error: method bounce requires To, Cc, or Bcc." 4 .IX Item "Error: method bounce requires To, Cc, or Bcc." The message \fBbounce()\fR method forwards a received message off to someone else without modification; you must specified it\*(Aqs new destination. If you have the urge not to specify any destination, you probably are looking for \fBreply()\fR. When you wish to modify the content, use \&\fBforward()\fR. Cast by \f(CWbounce()\fR .IP "Error: method forwardAttach requires a preamble." 4 .IX Item "Error: method forwardAttach requires a preamble." Cast by \f(CWforwardAttach()\fR .IP "Error: method forwardEncapsulate requires a preamble." 4 .IX Item "Error: method forwardEncapsulate requires a preamble." Cast by \f(CWforwardEncapsulate()\fR .IP "Error: method forwardNo requires a To." 4 .IX Item "Error: method forwardNo requires a To." Cast by \f(CWforwardNo()\fR .IP "Error: method forwardNo requires a body." 4 .IX Item "Error: method forwardNo requires a body." Cast by \f(CWforwardNo()\fR .ie n .IP "Error: no rebuild rule $name defined." 4 .el .IP "Error: no rebuild rule \f(CW$name\fR defined." 4 .IX Item "Error: no rebuild rule $name defined." Cast by \f(CWrebuild()\fR .IP "Error: only \fBbuild()\fR Mail::Message\*(Aqs; they are not in a folder yet." 4 .IX Item "Error: only build() Mail::Message's; they are not in a folder yet." You may wish to construct a message to be stored in a some kind of folder, but you need to do that in two steps. First, create a normal Mail::Message, and then add it to the folder. During this \&\fBMail::Box::addMessage()\fR process, the message will get \fBcoerce()\fR\-d into the right message type, adding storage information and the like. Cast by \f(CWbuild()\fR .IP "Error: select parts via \*(Aq$what\*(Aq?" 4 .IX Item "Error: select parts via '$what'?" Cast by \f(CWparts()\fR .IP "Warning: skipped unknown key \*(Aq$key\*(Aq in build." 4 .IX Item "Warning: skipped unknown key '$key' in build." Cast by \f(CWbuild()\fR .ie n .IP "Error: you cannot coerce a $class into destruction." 4 .el .IP "Error: you cannot coerce a \f(CW$class\fR into destruction." 4 .IX Item "Error: you cannot coerce a $class into destruction." Only real Mail::Box::Message objects can get destructed into Mail::Box::Message::Destructed objects. Mail::Message free their memory immediately when the last reference is lost. Cast by \f(CWcoerce()\fR .IP "Error: you cannot instantiate a destructed message." 4 .IX Item "Error: you cannot instantiate a destructed message." You cannot instantiate a destructed message object directly. Destruction is done by calling \fBMail::Box::Message::destruct()\fR on any existing folder message. Cast by \f(CWnew()\fR .IP "Error: you cannot set the body on a destructed message." 4 .IX Item "Error: you cannot set the body on a destructed message." Cast by \f(CWbody()\fR .IP "Error: you cannot set the head on a destructed message." 4 .IX Item "Error: you cannot set the head on a destructed message." Cast by \f(CWhead()\fR .IP "Error: you cannot set the modified flag on a destructed message." 4 .IX Item "Error: you cannot set the modified flag on a destructed message." Cast by \f(CWmodified()\fR .IP "Error: you cannot take the body of a destructed message." 4 .IX Item "Error: you cannot take the body of a destructed message." Cast by \f(CWbody()\fR .IP "Error: you cannot take the head of a destructed message." 4 .IX Item "Error: you cannot take the head of a destructed message." Cast by \f(CWhead()\fR .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of Mail\-Box version 4.02, built on April 10, 2026. Website: \fIhttp://perl.overmeer.net/CPAN/\fR .SH LICENSE .IX Header "LICENSE" For contributors see file ChangeLog. .PP This software is copyright (c) 2001\-2026 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.