in reply to Re: reading body of email not working
in thread reading body of email not working

Hm, good observation... I changed it but this line:
printf( "[%04d] %s\n\t%s\n", $i, $es->header('From'), $es->header('Sub +ject'), $es->body);
again does not show the body of the email...

Replies are listed 'Best First'.
Re^3: reading body of email not working
by Eily (Monsignor) on Jun 01, 2017 at 08:12 UTC

    Still only three variables (except the number will be printed with 4 digits instead of three). Your next post is a little more helpful though.

    The documentation for top() in Net::IMAP::Simple states that it returns the lines of the header so it doesn't seem to be the correct way to access the body of the mail.

Re^3: reading body of email not working
by Anonymous Monk on Jun 01, 2017 at 08:02 UTC
    As a matter of fact, this command:
    print $es->body;
    does not print anything...