Mail::Message::Convert - conversions between message types
Mail::Message::Convert is a Mail::Reporter Mail::Message::Convert is extended by Mail::Message::Convert::Html Mail::Message::Convert::HtmlFormatPS Mail::Message::Convert::HtmlFormatText Mail::Message::Convert::MailInternet Mail::Message::Convert::MimeEntity Mail::Message::Convert::TextAutoformat
Available methods are very converter-specific.
This class is the base for various message (and message parts) converters. When the conversion does not change the contents of the body, most of the converters will return the source object. In any case, an Mail::Message::Body is returned with the conversion applied but as much of the other meta data stored in the source body unchanged.
In most cases, converters are created by Mail::Message when they are needed; have a look at the encode and decoded methods on message objects.
encode
decoded
The following converters are currently available:
Mail::Message::Convert::Html
Plays tricks with HTML/XMHTML without help of external modules.
Mail::Message::Convert::HtmlFormatText
Converts HTML body objects to plain text objects using the HTML::FormatText module.
Mail::Message::Convert::HtmlFormatPS
Converts HTML body objects to Postscript objects using the HTML::FormatPS module.
Mail::Message::Convert::MailInternet
Converts the simple Mail::Internet messages into Mail::Message objects.
Mail::Message::Convert::MimeEntity
Converts the more complicated MIME::Entity messages into Mail::Message objects.
Mail::Message::Convert::TextAutoformat
Converts a text message into text using Text::Autoformat.
Mail::Message::Convert->new(OPTIONS)
-Option--Defined in --Default fields <see description> log Mail::Reporter 'WARNINGS' trace Mail::Reporter 'WARNINGS'
'WARNINGS'
. fields NAMES|ARRAY-OF-NAMES|REGEXS
Select the fields of a header which are to be handled. Other fields will not be used. The value of this option is passed to Mail::Message::Head::Complete::grepNames() whenever converters feel a need for header line selection. By default, the To, From, Cc, Bcc, Date, Subject, and their Resent- counterparts will be selected. Specify an empty list to get all fields.
To
From
Cc
Bcc
Date
Subject
Resent-
. log LEVEL
. trace LEVEL
$obj->selectedFields(HEAD)
Returns a list of fields to be included in the format. The list is an ordered selection of the fields in the actual header, and filtered through the information as specified with new(fields).
$obj->AUTOLOAD
See "Error handling" in Mail::Reporter
$obj->addReport(OBJECT)
$obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
Mail::Message::Convert->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
$obj->errors
$obj->log([LEVEL [,STRINGS]])
Mail::Message::Convert->log([LEVEL [,STRINGS]])
$obj->logPriority(LEVEL)
Mail::Message::Convert->logPriority(LEVEL)
$obj->logSettings
$obj->notImplemented
$obj->report([LEVEL])
$obj->reportAll([LEVEL])
$obj->trace([LEVEL])
$obj->warnings
$obj->DESTROY
See "Cleanup" in Mail::Reporter
$obj->inGlobalDestruction
Error: Package $package does not implement $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 however the class at hand does not. Probably you should investigate this and probably inform the author of the package.
See the MailBox website at http://perl.overmeer.net/mailbox/ for more details.
Distribution version 2.066. Written by Mark Overmeer (mark@overmeer.net). See the ChangeLog for other contributors.
Copyright (c) 2001-2003 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mail::Box, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Box
CPAN shell
perl -MCPAN -e shell install Mail::Box
For more information on module installation, please visit the detailed CPAN module installation guide.