NAME

Email::Folder - read all the messages from a folder.

SYNOPSIS

use Email::Folder;

my $folder = Email::Folder->new("some_file");

print join "\n", map { $_->header("Subject") }, $folder->messages();

METHODS

new($folder, %options)

Takes the name of a folder, and a hash of options

bless_message($message)

Takes a raw RFC822 message and blesses it into a class.

By default this is an Email::Simple object but could be overwritten.

messages

Returns a list containing all the messages in a folder

next_message

acts as an iterator. reads the next message from a folder. returns false at the end of the folder

AUTHORS

Simon Wistow <simon@thegestalt.org>

Richard Clamp <richardc@unixbeard.net>

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 doobie brothers.

SEE ALSO

Email::LocalDelivery, Email::FolderType, Email::Simple