NAME
Email::Simple::FromHandle - an Email::Simple but from a handle
VERSION
$Id$
version 0.010
SYNOPSIS
use Email::Simple::FileHandle;
open my $fh, "<", "email.msg";
my $email = Email::Simple::FromHandle->new($fh);
print $email->as_string;
DESCRIPTION
This is a subclass of Email::Simple which can accept filehandles as the source of an email. It will keep a reference to the filehandle and read from it when it needs to access the body. It does not load the entire body into memory and keep it there.
METHODS
In addition to the standard Email::Simple interface, the following methods are provided:
handle
This returns the handle given to construct the message. If the message was constructed with a string instead, it returns an IO::String object.
body_pos
This method returns the position in the handle at which the body begins. This is used for seeking when re-reading the body.
reset_handle
This method seeks the handle to the body position.
COPYRIGHT
This code is copyright Ricardo SIGNES, 2006. It is free software, released with the same licenses as Perl itself.