Mail::MboxParser::Mail::Convertable 0.55 review

Download
by rbytes.net on

Mail::MboxParser::Mail::Convertable is a Perl module that can convert mail for sending etc. SYNOPSIS use Mail::MboxParser;

License: Perl Artistic License
File size: 42K
Developer: Tassilo von Parseval
0 stars award from rbytes.net

Mail::MboxParser::Mail::Convertable is a Perl module that can convert mail for sending etc.

SYNOPSIS

use Mail::MboxParser;

[...]

# $msg is a Mail::MboxParser::Mail-object
my $mail = $msg->make_convertable;

$mail->delete_from_header('date', 'message-id');
$mail->replace_in_header('to', 'john.doe@foobar.com');
$mail->add_to_header( ['cc', 'john.does.brother@foobar.com'],
where => 'BEHIND' );
$mail->send('sendmail');

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.

Requirements:
Perl

Mail::MboxParser::Mail::Convertable 0.55 search tags