NAME

Message::Base - Zero Knowledge Message Base Class


SYNOPSIS

    use Message::Base;

    $base = new Message::Base();


REQUIRES

    Perl5.004+
    User::Base (Sub-class)


EXPORTS

Nothing


DESCRIPTION

This is the base class for all Message:: classes. The Message::Base class implements the methods common to all classes in this hiearchy.

The Message::Base does not sub-class any other classes.


CONSTRUCTOR

new Message::Base()

This is the constructor for the Message::Base object. This object should not be instatiated directly as it only serves as a parent class for all other Message:: classes.

Example:

  $base = new Message::Base();


METHODS

header( HEADER )

Return the message header object associated with this message. If HEADER is supplied, then it will be set to the new message header.

content( CONTENT )

Return the message content object associated with this message. If CONTENT is supplied, then it will be set to the new message content.

parse( MESSAGE_TEXT )

Parse the supplied message text and store internally. If MESSAGE_TEXT is not supplied then no operation will be performed and undef will be returned.

as_list()

Return the raw message text as a list of strings. The returned text complies with RFC822 header constructs and with the content in compliance RFC2045, RFC2047, RFC2231 and RFC2184 (MIME).

print()

Print the raw message text as with as_list but output the resulting list of strings to the default output device (stdout).


CLASS VARIABLES

None Present


SEE ALSO

Mail::Internet, MIME::Base64, MIME::Entity


AUTHOR

Kris Smith <krissmi@zeroknowledge.com> Philippe McLean <phillipem@zeroknowledge.com>


COPYRIGHT

Copyright 2000 Zero Knowledge Systems, Inc. All rights reserved