NAME

Message::Content - Zero Knowledge Message Content Class


SYNOPSIS

    use Message::Content;

    $base = new Message::Content();


REQUIRES

    Perl5.004+
    User::Base (Subclass)


EXPORTS

Nothing


DESCRIPTION

This is the message content class. This class encapsulates a single message content item within a mail or news message. This class contains an implementation of the perl library module MIME::Parser to assist with the decoding and manipulation sets or individual MIME entities.

The Message::Content is not a sub-class of any class..


CONSTRUCTOR

new Message::Base()

This is the constructor for the Message::Content object. A new content object is created with the new method and is accessed from the resulting object.


METHODS

new_part()

Create an return a new empty MIME entity for this message.

add_part()

Add a new MIME entity to this message.

head_part()

Return the MIME head entity for this message.

preamble()

Return the MIME preamble for this message. If this is a singlepart MIME message then return undef.

parts ()

Return a lst of all MIME entities contained in this message.

make_multipart ()

Transform the current message content into a multipart MIME message.

is_multipart ()

Return TRUE if this message content object contains a multiple MIME entities.

freedomize ()

Transform this message content object into a ZKS Freedom network compatible message.

parse ( TEXT )

Parse the suppied text into its respective MIME entities and store internally. This is potentially an expensive and (possibly) error-prone operation.

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

Message::Base, 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