NAME¶
Email::Folder::Reader - reads raw RFC822 mails from a box
SYNOPSIS¶
use Email::Folder::Reader;
my $box = Email::Folder::Reader->new('somebox');
print $box->messages;
or, as an iterator
use Email::Folder::Reader;
my $box = Email::Folder::Reader->new('somebox');
while ( my $mail = $box->next_message ) {
print $mail;
}
METHODS¶
->new($filename, %options)¶
your standard class-method constructor
->next_message¶
returns the next message from the box, or false if there are no more
->messages¶
Returns all the messages in a box
AUTHOR¶
Simon Wistow <simon@thegestalt.org>
COPYING¶
Copyright 2003, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably ruin your life, kill your
friends, burn your house and bring about the apocolapyse.
SEE ALSO¶
Email::LocalDelivery, Email::Folder