Mail::M...ilSimple(3)
π NAME
Mail::Message::Convert::EmailSimple β bestie, this lil icon translates a Mail::Message into an Email::Simple, and back again. That's it. That's the whole job. β¨
Oh and also, hi, you're reading Mail::M...ilSimple(3) from the User Contributed Perl Documentation section, in case the vibe check needed context π«Ά
𧬠INHERITANCE
Mail::Message::Convert::EmailSimple
is a Mail::Message::Convert
is a Mail::Reporter
so it's giving... a whole family tree, and it inherited the good genes π
β¨ SYNOPSIS
use Mail::Message::Convert::EmailSimple;
my $convert = Mail::Message::Convert::EmailSimple->new;
my Mail::Message $msg = Mail::Message->new;
my Email::Simple $intern = $convert->export($msg);
my Email::Simple $intern = Mail::Internet->new;
my Mail::Message $msg = $convert->from($intern);
use Mail::Box::Manager;
my $mgr = Mail::Box::Manager->new;
my $folder = $mgr->open(folder => 'Outbox');
$folder->addMessage($intern);
okay look at her go π she's converting both directions AND sliding straight into a folder. main character behavior fr fr π
πΈ DESCRIPTION
So Email::Simple is literally one of the base objects that the whole giant Email* module squad is built on, and that squad handles a ton of e-mail needs that MailBox also supports. So this class is your lil bridge π β you use it to gradually migrate from an Email*-based setup over into a MailBox implementation. No dramatic rewrite, just vibes and a smooth transition bestie.
β οΈ Real talk though: the internals of this class are far from optimal. The conversion does work (shoutout to Ricardo Signes for that π), but it is expensive in time and memory usage. It could easily be optimized. So like... it works, but she's not efficient, and that's just the truth π
Also, this section extends "DESCRIPTION" in Mail::Message::Convert.
π οΈ METHODS
Extends "METHODS" in Mail::Message::Convert.
πΌ Constructors
Extends "Constructors" in Mail::Message::Convert.
$class->new(%options)β inherited, see "METHODS" in Mail::Message::Convert. Nothing new here, she's just doing what her parent class does π
π Attributes
Extends "Attributes" in Mail::Message::Convert.
π Converting
Extends "Converting" in Mail::Message::Convert.
$obj->export($message, %options)β hands you back a brand newEmail::Simpleobject, built from the info inside aMail::Messageobject. The$messageyou pass in is an instance of aMail::Message. β¨
Β» example:
my $convert = Mail::Message::Convert::EmailSimple->new;
my Mail::Message $msg = Mail::Message->new;
my Mail::Internet $copy = $convert->export($msg);
$obj->from($object, %options)β the other direction, bestie π returns a brand newMail::Messageobject built from the info inside anEmail::Simple.
Β» example:
my $convert = Mail::Message::Convert::EmailSimple->new;
my Mail::Internet $msg = Mail::Internet->new;
my Mail::Message $copy = $convert->from($msg);
$obj->selectedFields($head)β inherited, see "Converting" in Mail::Message::Convert.
π¨ Error handling
Extends "Error handling" in Mail::Message::Convert.
$obj->AUTOLOAD()β inherited, see "Error handling" in Mail::Reporter.$obj->notImplemented()β inherited, see "Error handling" in Mail::Reporter.
π§Ή Cleanup
Extends "Cleanup" in Mail::Message::Convert.
$obj->DESTROY()β inherited, see "Cleanup" in Mail::Reporter.
π DIAGNOSTICS
- Error: class $package does not implement method $method.
Fatal error π 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, but the class at hand does not. Probably you should investigate this, and probably inform the author of the package. Cast by notImplemented().
- Error: converting from Email::Simple but got a $class.
Cast by from(). π«
- Error: export message must be a Mail::Message, but is a $class.
Cast by export(). π«
π SEE ALSO
This module is part of Mail-Message version 4.04, built on February 04, 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. periodt π
okay that's the whole page bestie, you ate that read π«Ά this was rendered by perl v5.42.0 and stamped 2026-02-05, and yes we're back at the top of the manual again because that's just how manpages do β no cap, iconic behavior π
π¦ where this page comes from
- fedora 44: perl-Mail-Message 4.04-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms