The problem is that you're looking for a line that starts with "Body:" and you're not going to find one. Try printing out each line as you process it. After all the header fields, there are two newlines and then the body just starts--there's no tag identifying it.
You might want to use Email::Simple to handle the parsing of the email message. The example in the Net::IMAP::Simple perldoc uses it.
-b
In reply to Re: Using Net::IMAP::Simple to read emails
by bgreenlee
in thread Using Net::IMAP::Simple to read emails
by eizo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |