Parsing Ruby

What I am trying to do is to download the email from a POP3 account
using ruby and simply get the addresses in the FROM field and the
content of the body into strings.

What is the best way to achieve this using ruby?

I am refering to this to help me:

But unfortunately it doesn't say much in the tutorial.

···

--
Posted via http://www.ruby-forum.com/.

What I am trying to do is to download the email from a POP3 account
using ruby and simply get the addresses in the FROM field and the
content of the body into strings.

What is the best way to achieve this using ruby?

On the github page for the proejct you reference they have an example:

---8<[snip]---
mail = Mail.read('/path/to/message.eml')

mail.from.addresses #=> ['mikel@test.lindsaar.net', 'ada@test.lindsaar.net']
---8<[snip]---

So once you've downloaded messages, for each message you just reference
the mail.from.addresses attribute and it gives you an array of the email
addresses themselves. Is that not what you want?

I am refering to this to help me:
mail/README.md at master · mikel/mail · GitHub

But unfortunately it doesn't say much in the tutorial.

Scroll through the readme file.

···

On Sat, Jul 13, 2013 at 07:55:12AM +0900, Robert Jones wrote:

--
Darryl L. Pierce <mcpierce@gmail.com>
http://mcpierce.multiply.com/
"What do you care what people think, Mr. Feynman?"