Guntram Blohm > Mail-Exchange-0.04 > Mail::Exchange::Message::Email

Download:
Mail-Exchange-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Mail::Exchange::Message::Email - subclass of Mail::Exchange::Message that initializes Email-specific fields

SYNOPSIS ^

    use Mail::Exchange::Message::Email;

    $mail=Mail::Exchange::Message::Email->new();

DESCRIPTION ^

Mail::Exchange::Message::Email is a utility class derived from Mail::Exchange::Message. When creating a new message object, it sets the Message Class to "IPM.Note" to mark this message as an email object.

new()

$msg=Mail::Exchange::Message::Email->new();

Create a new message object and initialize it to an email.

parse()

The parse() method is overwritten to abort, because the message type will be read from the input file, so a plain Mail::Exchange::Message object should be used in this case.

fromMIME()

fromMIME takes an Email::MIME object and returns a Mail::Exchange::Message::Email object.

syntax highlighting: