.\" -*- 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::Mbox::Message 3" .TH Mail::Box::Mbox::Message 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::Mbox::Message \- one message in a Mbox folder .SH INHERITANCE .IX Header "INHERITANCE" .Vb 5 \& Mail::Box::Mbox::Message \& is a Mail::Box::File::Message \& is a Mail::Box::Message \& is a Mail::Message \& is a Mail::Reporter .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& my $folder = Mail::Box::Mbox\->new(folder => $ENV{MAIL}, ...); \& my $message = $folder\->message(0); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Maintain one message in an Mail::Box::Mbox folder. .PP Extends "DESCRIPTION" in Mail::Box::File::Message. .SH METHODS .IX Header "METHODS" Extends "METHODS" in Mail::Box::File::Message. .SH DETAILS .IX Header "DETAILS" Extends "DETAILS" in Mail::Box::File::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: Unable to read delayed body." 4 .IX Item "Error: Unable to read delayed body." Cast by \f(CWloadBody()\fR .ie n .IP "Error: cannot coerce a $type object into a $me object." 4 .el .IP "Error: cannot coerce a \f(CW$type\fR object into a \f(CW$me\fR object." 4 .IX Item "Error: cannot coerce a $type object into a $me object." Cast by \f(CWcoerce()\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: coercion starts with some object, not \*(Aq$type\*(Aq." 4 .IX Item "Error: coercion starts with some object, not '$type'." Cast by \f(CWcoerce()\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: please install Email::Simple." 4 .IX Item "Error: please install Email::Simple." Cast by \f(CWcoerce()\fR .IP "Error: please install MIME::Entity." 4 .IX Item "Error: please install MIME::Entity." Cast by \f(CWcoerce()\fR .IP "Error: please install Mail::Internet." 4 .IX Item "Error: please install Mail::Internet." Cast by \f(CWcoerce()\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 .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.