in reply to Using Net::IMAP::Simple to read emails
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Net::IMAP::Simple to read emails
by Anonymous Monk on Dec 22, 2004 at 21:23 UTC | |
by bgreenlee (Friar) on Dec 22, 2004 at 23:25 UTC | |
by Anonymous Monk on Dec 23, 2004 at 01:49 UTC |