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" in Mail::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" in Mail::Reporter

so new takes the message id and options, and here's the whole options tea πŸ“:

  • body β€” from Mail::Message, default: <not used>
  • body_type β€” from Mail::Message, default: Mail::Message::Body::Lines
  • deleted β€” from Mail::Message, default: false
  • field_type β€” from Mail::Message, default: <not used>
  • head β€” from Mail::Message, default: <not used>
  • head_type β€” from Mail::Message, default: <not used>
  • labels β€” from Mail::Message, default: +{}
  • messageId β€” from Mail::Message, default: <required>
  • message_id β€” from Mail::Message, default: undef
  • modified β€” from Mail::Message, default: <always false>
  • trusted β€” from Mail::Message, default: <always true>

and the per-option one-liners, same order, no skips:

  • body => $object
  • body_type => $class
  • deleted => BOOLEAN
  • field_type => $class
  • head => $object
  • head_type => $class
  • labels => \@pairs|\%settings
  • messageId => $id
  • message_id => $id
  • modified => BOOLEAN
  • trusted => 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" in Mail::Message
  • $obj->fieldType() β€” inherited, see "Attributes" in Mail::Message
  • $obj->headType() β€” inherited, see "Attributes" in Mail::Message
  • $obj->messageId() β€” inherited, see "Attributes" in Mail::Message

🧚 Constructing a message 🧚

Extends "Constructing a message" in Mail::Message.

  • $obj->bounce( [<$rg_object|%options>] ) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Bounce
  • $class->build( [$message|$part|$body], @fields, %options ) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Build
  • $class->buildFromBody($body, [$head], $headers) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Build
  • $obj->forward(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardAttach(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardEncapsulate(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardInline(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardNo(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardPostlude() β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardPrelude() β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $obj->forwardSubject(STRING) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Forward
  • $class->read($fh|$text|\$text|\@lines, %options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Read
  • $obj->rebuild(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Rebuild
  • $obj->reply(%options) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Reply
  • $obj->replyPrelude( [STRING|$field|$address|\@addrs|\@fields] ) β€” inherited, see "Constructing a message" in Mail::Message::Construct::Reply
  • $any->replySubject(STRING) β€” inherited, see "Constructing a message" in Mail::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" in Mail::Message
  • $obj->endsOnNewline() β€” inherited, see "The message" in Mail::Message
  • $obj->isDummy() β€” inherited, see "The message" in Mail::Message
  • $obj->isPart() β€” inherited, see "The message" in Mail::Message
  • $obj->partNumber() β€” inherited, see "The message" in Mail::Message
  • $obj->print( [$fh] ) β€” inherited, see "The message" in Mail::Message
  • $obj->send( [$mailer], %options ) β€” inherited, see "The message" in Mail::Message
  • $obj->size() β€” inherited, see "The message" in Mail::Message
  • $obj->toplevel() β€” inherited, see "The message" in Mail::Message
  • $obj->write( [$fh] ) β€” inherited, see "The message" in Mail::Message

πŸ“ The header πŸ“

Extends "The header" in Mail::Message.

  • $obj->bcc() β€” inherited, see "The header" in Mail::Message
  • $obj->cc() β€” inherited, see "The header" in Mail::Message
  • $obj->date() β€” inherited, see "The header" in Mail::Message
  • $obj->destinations() β€” inherited, see "The header" in Mail::Message
  • $obj->from() β€” inherited, see "The header" in Mail::Message
  • $obj->get($fieldname) β€” inherited, see "The header" in Mail::Message
  • $obj->guessTimestamp() β€” inherited, see "The header" in Mail::Message
  • $obj->head( [$head] ) β€” inherited, see "The header" in Mail::Message
  • $obj->nrLines() β€” inherited, see "The header" in Mail::Message
  • $obj->sender() β€” inherited, see "The header" in Mail::Message
  • $obj->study($fieldname) β€” inherited, see "The header" in Mail::Message
  • $obj->subject() β€” inherited, see "The header" in Mail::Message
  • $obj->timestamp() β€” inherited, see "The header" in Mail::Message
  • $obj->to() β€” inherited, see "The header" in Mail::Message

πŸ’€ The body πŸ’€

Extends "The body" in Mail::Message.

  • $obj->body( [$body] ) β€” inherited, see "The body" in Mail::Message
  • $obj->contentType() β€” inherited, see "The body" in Mail::Message
  • $obj->decoded(%options) β€” inherited, see "The body" in Mail::Message
  • $obj->encode(%options) β€” inherited, see "The body" in Mail::Message
  • $obj->isMultipart() β€” inherited, see "The body" in Mail::Message
  • $obj->isNested() β€” inherited, see "The body" in Mail::Message
  • $obj->parts( [<'ALL'|'ACTIVE'|'DELETED'|'RECURSE'|$filter>] ) β€” inherited, see "The body" in Mail::Message

🫢 Flags 🫢

Extends "Flags" in Mail::Message.

  • $obj->delete() β€” inherited, see "Flags" in Mail::Message
  • $obj->deleted( [BOOLEAN] ) β€” inherited, see "Flags" in Mail::Message
  • $obj->isDeleted() β€” inherited, see "Flags" in Mail::Message
  • $obj->isModified() β€” inherited, see "Flags" in Mail::Message
  • $obj->label($label|PAIRS) β€” inherited, see "Flags" in Mail::Message
  • $obj->labels() β€” inherited, see "Flags" in Mail::Message
  • $obj->labelsToStatus() β€” inherited, see "Flags" in Mail::Message
  • $obj->modified( [BOOLEAN] ) β€” inherited, see "Flags" in Mail::Message
  • $obj->statusToLabels() β€” inherited, see "Flags" in Mail::Message

⭐ The whole message as text ⭐

Extends "The whole message as text" in Mail::Message.

  • $obj->file() β€” inherited, see "The whole message as text" in Mail::Message::Construct::Text
  • $obj->lines() β€” inherited, see "The whole message as text" in Mail::Message::Construct::Text
  • $obj->printStructure( [$fh|undef],[$indent] ) β€” inherited, see "The whole message as text" in Mail::Message::Construct::Text
  • $obj->string() β€” inherited, see "The whole message as text" in Mail::Message::Construct::Text

πŸ™ˆ Internals πŸ™ˆ

Extends "Internals" in Mail::Message.

  • $obj->clonedFrom() β€” inherited, see "Internals" in Mail::Message
  • $class->coerce($message, %options) β€” inherited, see "Internals" in Mail::Message
  • $obj->isDelayed() β€” inherited, see "Internals" in Mail::Message
  • $obj->isTrusted() β€” inherited, see "Internals" in Mail::Message
  • $obj->readBody( $parser, $head, [$bodytype] ) β€” inherited, see "Internals" in Mail::Message
  • $obj->readFromParser( $parser, [$bodytype] ) β€” inherited, see "Internals" in Mail::Message
  • $obj->readHead( $parser, [$class] ) β€” inherited, see "Internals" in Mail::Message
  • $obj->recursiveRebuildPart($part, %options) β€” inherited, see "Internals" in Mail::Message::Construct::Rebuild
  • $obj->storeBody($body) β€” inherited, see "Internals" in Mail::Message
  • $obj->takeMessageId( [STRING] ) β€” inherited, see "Internals" in Mail::Message

🌸 Error handling 🌸

Extends "Error handling" in Mail::Message.

  • $obj->AUTOLOAD() β€” inherited, see "METHODS" in Mail::Message::Construct
  • $obj->notImplemented() β€” inherited, see "Error handling" in Mail::Reporter
  • $any->shortSize( [$value] ) β€” inherited, see "Error handling" in Mail::Message
  • $obj->shortString() β€” inherited, see "Error handling" in Mail::Message

✨ Cleanup ✨

Extends "Cleanup" in Mail::Message.

  • $obj->DESTROY() β€” inherited, see "Cleanup" in Mail::Reporter
  • $obj->destruct() β€” inherited, see "Cleanup" in Mail::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 by forward()
  • Error: No default mailer found to send message. β€” the send() 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 by send()
  • Error: cannot coerce a $type object into a $me object. β€” Cast by coerce()
  • Error: cannot include reply source as $kind. β€” unknown alternative for the "include" option of reply(). the valid choices are "NO", "INLINE", and "ATTACH". Cast by reply()
  • Error: cannot read message from a $source. β€” Cast by read()
  • 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 by notImplemented()
  • Error: coercion starts with some object, not '$type'. β€” Cast by coerce()
  • Error: method bounce requires To, Cc, or Bcc. β€” the message bounce() 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 for reply(). when you wish to modify the content, use forward(). Cast by bounce()
  • Error: method forwardAttach requires a preamble. β€” Cast by forwardAttach()
  • Error: method forwardEncapsulate requires a preamble. β€” Cast by forwardEncapsulate()
  • Error: method forwardNo requires a To. β€” Cast by forwardNo()
  • Error: method forwardNo requires a body. β€” Cast by forwardNo()
  • Error: no rebuild rule $name defined. β€” Cast by rebuild()
  • 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 normal Mail::Message, and then add it to the folder. during this Mail::Box::addMessage() process, the message will get coerce()-d into the right message type, adding storage information and the like ✨ Cast by build()
  • Error: please install Email::Simple. β€” Cast by coerce()
  • Error: please install MIME::Entity. β€” Cast by coerce()
  • Error: please install Mail::Internet. β€” Cast by coerce()
  • Error: select parts via '$what'? β€” Cast by parts()
  • Warning: skipped unknown key '$key' in build. β€” Cast by build()
  • 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 by new()
  • Error: you cannot take the body of a dummy message. β€” Cast by body()
  • 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 a Reply-To or References field, however it did not find the header and body of the message yet. use isDummy() to check whether the thread node returned a dummy or not πŸ‘‘ Cast by head()

🌈 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