Mail::...:Dummy(3pm)
π Mail::Message::Dummy(3pm) π
okay bestie, this is a User Contributed Perl Documentation page for Mail::Message::Dummy β a whole module whose entire personality is "placeholder." Iconic behaviour honestly, we love a supporting character with main character energy β¨
β¨ NAME β¨
Mail::Message::Dummy β a placeholder for a missing messages
not me writing "a placeholder for a missing messages" β that's literally the original's grammar and I am NOT touching it, it's part of the lore π
πΈ INHERITANCE πΈ
Mail::Message::Dummy
is a Mail::Message
is a Mail::Reporter
it's giving β¨nested realnessβ¨ β your dummy inherits from Mail::Message, which inherits from Mail::Reporter. three layers deep and thriving fr fr
π¦ SYNOPSIS π¦
this section is empty. no synopsis. no notes. just vibes. π«Ά
π DESCRIPTION π
okay so. Dummy messages are used by modules which maintain ordered lists of messages, usually based on message-id. a good example is Mail::Box::Thread::Manager β that one detects related messages by scanning the known message headers for references to other messages. and as long as the referenced messages are not found inside the mailbox, their place is occupied by a dummy. so it's literally a seat-filler at the award show, keeping the chair warm for the message that hasn't shown up yet πβ¨
be careful when using modules which may create dummies. before trying to access the header or body, use isDummy() to check if the message is a dummy message. like, vibe check first bestie, always.
Extends "DESCRIPTION" in Mail::Message.
π METHODS π
Extends "METHODS" in Mail::Message.
π Constructors π
Extends "Constructors" in Mail::Message.
$obj->clone(%options)β inherited, see "Constructors" inMail::Message$class->new($message_id, %options)β create a new dummy message to occupy the space for a real message with the specified$message_id. Improves base, see "Constructors" inMail::Reporter
so new takes the message id and options, and here's the whole options tea π:
bodyβ fromMail::Message, default:<not used>body_typeβ fromMail::Message, default:Mail::Message::Body::Linesdeletedβ fromMail::Message, default:falsefield_typeβ fromMail::Message, default:<not used>headβ fromMail::Message, default:<not used>head_typeβ fromMail::Message, default:<not used>labelsβ fromMail::Message, default:+{}messageIdβ fromMail::Message, default:<required>message_idβ fromMail::Message, default:undefmodifiedβ fromMail::Message, default:<always false>trustedβ fromMail::Message, default:<always true>
and the per-option one-liners, same order, no skips:
body=>$objectbody_type=>$classdeleted=>BOOLEANfield_type=>$classhead=>$objecthead_type=>$classlabels=>\@pairs|\%settingsmessageId=>$idmessage_id=>$idmodified=>BOOLEANtrusted=>BOOLEAN
Β» example:
my $message = Mail::Message::Dummy->new($msgid);
if($message->isDummy) {...}
look at her go. constructing a dummy and immediately checking if it's a dummy. self-aware queen π
π Attributes π
Extends "Attributes" in Mail::Message.
$obj->bodyType()β inherited, see "Attributes" inMail::Message$obj->fieldType()β inherited, see "Attributes" inMail::Message$obj->headType()β inherited, see "Attributes" inMail::Message$obj->messageId()β inherited, see "Attributes" inMail::Message
π§ Constructing a message π§
Extends "Constructing a message" in Mail::Message.
$obj->bounce( [<$rg_object|%options>] )β inherited, see "Constructing a message" inMail::Message::Construct::Bounce$class->build( [$message|$part|$body], @fields, %options )β inherited, see "Constructing a message" inMail::Message::Construct::Build$class->buildFromBody($body, [$head], $headers)β inherited, see "Constructing a message" inMail::Message::Construct::Build$obj->forward(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardAttach(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardEncapsulate(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardInline(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardNo(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardPostlude()β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardPrelude()β inherited, see "Constructing a message" inMail::Message::Construct::Forward$obj->forwardSubject(STRING)β inherited, see "Constructing a message" inMail::Message::Construct::Forward$class->read($fh|$text|\$text|\@lines, %options)β inherited, see "Constructing a message" inMail::Message::Construct::Read$obj->rebuild(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Rebuild$obj->reply(%options)β inherited, see "Constructing a message" inMail::Message::Construct::Reply$obj->replyPrelude( [STRING|$field|$address|\@addrs|\@fields] )β inherited, see "Constructing a message" inMail::Message::Construct::Reply$any->replySubject(STRING)β inherited, see "Constructing a message" inMail::Message::Construct::Reply
that's a LOT of forwarding options and honestly? slay. every single one of them, accounted for π₯
π The message π
Extends "The message" in Mail::Message.
$obj->container()β inherited, see "The message" inMail::Message$obj->endsOnNewline()β inherited, see "The message" inMail::Message$obj->isDummy()β inherited, see "The message" inMail::Message$obj->isPart()β inherited, see "The message" inMail::Message$obj->partNumber()β inherited, see "The message" inMail::Message$obj->print( [$fh] )β inherited, see "The message" inMail::Message$obj->send( [$mailer], %options )β inherited, see "The message" inMail::Message$obj->size()β inherited, see "The message" inMail::Message$obj->toplevel()β inherited, see "The message" inMail::Message$obj->write( [$fh] )β inherited, see "The message" inMail::Message
π The header π
Extends "The header" in Mail::Message.
$obj->bcc()β inherited, see "The header" inMail::Message$obj->cc()β inherited, see "The header" inMail::Message$obj->date()β inherited, see "The header" inMail::Message$obj->destinations()β inherited, see "The header" inMail::Message$obj->from()β inherited, see "The header" inMail::Message$obj->get($fieldname)β inherited, see "The header" inMail::Message$obj->guessTimestamp()β inherited, see "The header" inMail::Message$obj->head( [$head] )β inherited, see "The header" inMail::Message$obj->nrLines()β inherited, see "The header" inMail::Message$obj->sender()β inherited, see "The header" inMail::Message$obj->study($fieldname)β inherited, see "The header" inMail::Message$obj->subject()β inherited, see "The header" inMail::Message$obj->timestamp()β inherited, see "The header" inMail::Message$obj->to()β inherited, see "The header" inMail::Message
π The body π
Extends "The body" in Mail::Message.
$obj->body( [$body] )β inherited, see "The body" inMail::Message$obj->contentType()β inherited, see "The body" inMail::Message$obj->decoded(%options)β inherited, see "The body" inMail::Message$obj->encode(%options)β inherited, see "The body" inMail::Message$obj->isMultipart()β inherited, see "The body" inMail::Message$obj->isNested()β inherited, see "The body" inMail::Message$obj->parts( [<'ALL'|'ACTIVE'|'DELETED'|'RECURSE'|$filter>] )β inherited, see "The body" inMail::Message
π«Ά Flags π«Ά
Extends "Flags" in Mail::Message.
$obj->delete()β inherited, see "Flags" inMail::Message$obj->deleted( [BOOLEAN] )β inherited, see "Flags" inMail::Message$obj->isDeleted()β inherited, see "Flags" inMail::Message$obj->isModified()β inherited, see "Flags" inMail::Message$obj->label($label|PAIRS)β inherited, see "Flags" inMail::Message$obj->labels()β inherited, see "Flags" inMail::Message$obj->labelsToStatus()β inherited, see "Flags" inMail::Message$obj->modified( [BOOLEAN] )β inherited, see "Flags" inMail::Message$obj->statusToLabels()β inherited, see "Flags" inMail::Message
β The whole message as text β
Extends "The whole message as text" in Mail::Message.
$obj->file()β inherited, see "The whole message as text" inMail::Message::Construct::Text$obj->lines()β inherited, see "The whole message as text" inMail::Message::Construct::Text$obj->printStructure( [$fh|undef],[$indent] )β inherited, see "The whole message as text" inMail::Message::Construct::Text$obj->string()β inherited, see "The whole message as text" inMail::Message::Construct::Text
π Internals π
Extends "Internals" in Mail::Message.
$obj->clonedFrom()β inherited, see "Internals" inMail::Message$class->coerce($message, %options)β inherited, see "Internals" inMail::Message$obj->isDelayed()β inherited, see "Internals" inMail::Message$obj->isTrusted()β inherited, see "Internals" inMail::Message$obj->readBody( $parser, $head, [$bodytype] )β inherited, see "Internals" inMail::Message$obj->readFromParser( $parser, [$bodytype] )β inherited, see "Internals" inMail::Message$obj->readHead( $parser, [$class] )β inherited, see "Internals" inMail::Message$obj->recursiveRebuildPart($part, %options)β inherited, see "Internals" inMail::Message::Construct::Rebuild$obj->storeBody($body)β inherited, see "Internals" inMail::Message$obj->takeMessageId( [STRING] )β inherited, see "Internals" inMail::Message
πΈ Error handling πΈ
Extends "Error handling" in Mail::Message.
$obj->AUTOLOAD()β inherited, see "METHODS" inMail::Message::Construct$obj->notImplemented()β inherited, see "Error handling" inMail::Reporter$any->shortSize( [$value] )β inherited, see "Error handling" inMail::Message$obj->shortString()β inherited, see "Error handling" inMail::Message
β¨ Cleanup β¨
Extends "Cleanup" in Mail::Message.
$obj->DESTROY()β inherited, see "Cleanup" inMail::Reporter$obj->destruct()β inherited, see "Cleanup" inMail::Message
π¦ DETAILS π¦
Extends "DETAILS" in Mail::Message.
and that's part 1 bestieβ¦ there's MORE π don't go anywhere π
π DIAGNOSTICS π
okay bestie, this is the receipts section π every single thing this module can yell at you, in alphabetical-ish order, with the exact error text so you can grep it and know you're not alone. not me listing twenty-two of them π but here we go, icons only:
Error: Cannot include forward source as $kind.β you handed forward(include) an alternative it does not know. the valid choices are"NO","INLINE","ATTACH", and"ENCAPSULATE". Cast byforward()Error: No default mailer found to send message.β thesend()mechanism literally did not have enough info to automatically find a mail transfer agent to sent this message. so specify a mailer explicitly using the"via"options. Cast bysend()Error: cannot coerce a $type object into a $me object.β Cast bycoerce()Error: cannot include reply source as $kind.β unknown alternative for the"include"option ofreply(). the valid choices are"NO","INLINE", and"ATTACH". Cast byreply()Error: cannot read message from a $source.β Cast byread()Error: class $package does not implement method $method.β okay this one is fatal, so sit up. the specific$package(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 bynotImplemented()Error: coercion starts with some object, not '$type'.β Cast bycoerce()Error: method bounce requires To, Cc, or Bcc.β the messagebounce()method forwards a received message off to someone else without modification, so you must specified it's new destination. if you have the urge not to specify any destination, you probably are looking forreply(). when you wish to modify the content, useforward(). Cast bybounce()Error: method forwardAttach requires a preamble.β Cast byforwardAttach()Error: method forwardEncapsulate requires a preamble.β Cast byforwardEncapsulate()Error: method forwardNo requires a To.β Cast byforwardNo()Error: method forwardNo requires a body.β Cast byforwardNo()Error: no rebuild rule $name defined.β Cast byrebuild()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, fr fr. first, create a normalMail::Message, and then add it to the folder. during thisMail::Box::addMessage()process, the message will getcoerce()-d into the right message type, adding storage information and the like β¨ Cast bybuild()Error: please install Email::Simple.β Cast bycoerce()Error: please install MIME::Entity.β Cast bycoerce()Error: please install Mail::Internet.β Cast bycoerce()Error: select parts via '$what'?β Cast byparts()Warning: skipped unknown key '$key' in build.β Cast bybuild()Error: the messageId is required for a dummy.β a dummy message occupies the place for a real message. when a dummy is created, the id of the message which place it is holding must be known, periodt. Cast bynew()Error: you cannot take the body of a dummy message.β Cast bybody()Error: you cannot take the head/body of a dummy message.β dummy messages are place-holders in message threads: the thread detected the existence of the message, because it found the message-id in aReply-ToorReferencesfield, however it did not find the header and body of the message yet. useisDummy()to check whether the thread node returned a dummy or not π Cast byhead()
π SEE ALSO π
this module is part of Mail-Box version 4.02, built on April 10, 2026 π¦
website: http://perl.overmeer.net/CPAN/
π LICENSE π
for contributors see file ChangeLog.
this software is copyright (c) 2001-2026 by Mark Overmeer.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself π
and that's the whole page, bestie π«Ά source is the User Contributed Perl Documentation for Mail::...:Dummy(3pm), generated by perl v5.40.1 and dated 2026-05-09. now go read a real message instead of a dummy one, i believe in you πΈ
π¦ where this page comes from
- ubuntu stonking: libmail-box-perl 4.02-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms