METHODS

See METHODS in Mail::Reporter

Constructors

$class->new( OPTIONS )
See new in Mail::Message::Convert.

Converting

$obj->export( MESSAGE, [PARSER] )

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.

» Example:
 my $convert = Mail::Message::Convert::MimeEntity->new;
 my Mail::Message $msg  = Mail::Message->new;
 my manual MIME::Entity  $copy = $convert->export($msg);
$obj->from( MIME-OBJECT )

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.

» Example:
 my $convert = Mail::Message::Convert::MimeEntity->new;
 my MIME::Entity  $msg  = MIME::Entity->new;
 my Mail::Message $copy = $convert->from($msg);
» Error: Converting from MIME::Entity but got a $type, return
$obj->selectedFields( HEAD )
See selectedFields in Mail::Message::Convert.

Error handling

$obj->AUTOLOAD
See AUTOLOAD in Mail::Reporter.
$obj->addReport( OBJECT )
See addReport in Mail::Reporter.
$obj->defaultTrace( [LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK] )
$class->defaultTrace( [LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK] )
See defaultTrace in Mail::Reporter.
$obj->errors
See errors in Mail::Reporter.
$obj->log( [LEVEL [,STRINGS]] )
$class->log( [LEVEL [,STRINGS]] )
See log in Mail::Reporter.
$obj->logPriority( LEVEL )
$class->logPriority( LEVEL )
See logPriority in Mail::Reporter.
$obj->logSettings
See logSettings in Mail::Reporter.
$obj->notImplemented
See notImplemented in Mail::Reporter.
$obj->report( [LEVEL] )
See report in Mail::Reporter.
$obj->reportAll( [LEVEL] )
See reportAll in Mail::Reporter.
$obj->trace( [LEVEL] )
See trace in Mail::Reporter.
$obj->warnings
See warnings in Mail::Reporter.

Cleanup

$obj->DESTROY
See DESTROY in Mail::Reporter.