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.
On Sat, Jul 13, 2013 at 07:55:12AM +0900, Robert J. wrote:
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’)
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?