in reply to Re^2: Parsing Subject and Body Of E-Mail Message
in thread Parsing Subject and Body Of E-Mail Message

I know this is an old post, however I came across it when trying to figure this out myself.

For others stuck with this example, you will need to change the following line from:

 my $es = Email::Simple->new(join '', @{ $imap->top($i) } );

to

my $es = Email::Simple->new( join '', @{ $imap->get($i) } );