NAME

Message::NewsMessage - Zero Knowledge News Message Class


SYNOPSIS

    use Message::NewsMessage;

    $base = new Message::NewsMessage();


REQUIRES

    Perl5.004+
    Message::Base
    User::Base (Subclass)


EXPORTS

Nothing


DESCRIPTION

This is the mail message class. This class encapsulates a single mail message . This class contains Message::Header and Message::Content classed to assist with the parsing and storage of the two message parts.

The Message::NewsMessage is is a subclass of Message::Base.


CONSTRUCTOR

new Message::NewsMessage()

This is the constructor for the Message::Header object. A new header object is created with the new method and is accessed through the resulting object.


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.

freedomize ()

Transform the mail message into a ZKS Fredeom network specific mail message.

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, Message::Header, Message::Content, Mail::Internet


AUTHOR

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


COPYRIGHT

Copyright 2000 Zero Knowledge Systems, Inc. All rights reserved