See METHODS in Mail::Reporter
Returns a new manual MIME::Entity message object based on the information from the MESSAGE, which is a Mail::Message object.
You may want to supply your own PARSER, which is a MIME::Parser object, to change the parser flags. Without a PARSER object, one is created for you, with all the default settings.
If undef
is passed, in place of a MESSAGE, then an empty list is
returned. When the parsing failes, then manual MIME::Parser throws an
exception.
my $convert = Mail::Message::Convert::MimeEntity->new; my Mail::Message $msg = Mail::Message->new; my manual MIME::Entity $copy = $convert->export($msg);
Returns a new Mail::Message object based on the information from
the specified manual MIME::Entity. If the conversion fails, the undef
is returned. If undef
is passed in place of an OBJECT, then an
empty list is returned.
my $convert = Mail::Message::Convert::MimeEntity->new; my MIME::Entity $msg = MIME::Entity->new; my Mail::Message $copy = $convert->from($msg);