Mail::MboxParser::Mail::Convertable 0.55 reviewDownload
Mail::MboxParser::Mail::Convertable is a Perl module that can convert mail for sending etc. SYNOPSIS use Mail::MboxParser;
Mail::MboxParser::Mail::Convertable is a Perl module that can convert mail for sending etc.
# $msg is a Mail::MboxParser::Mail-object
my $mail = $msg->make_convertable;
$mail->add_to_header( ['cc', 'firstname.lastname@example.org'],
where => 'BEHIND' );
This class adds means to convert an email object into something that could be send via SMTP, NNTP or dumped to a file or filehandle. Therefore, methods are provided that change the structure of an email which includes adding and removing of header-fields, MIME-parts etc and transforming them into objects of related modules.
Currently, only basic manipulation of the header and sending using Mail::Mailer is provided. More is to come soon.
This class works non-destructive. You first create a Convertable-object and do any modifications on this while the Mail-object from which it was derived will not be touched.
Mail::MboxParser::Mail::Convertable 0.55 search tags