From: "Darryl L. Pierce" Date: 2013-07-15T21:29:08+09:00 Subject: Re: Parsing Ruby. --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 13, 2013 at 07:55:12AM +0900, Robert Jones 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. >=20 > 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 =3D Mail.read('/path/to/message.eml') mail.from.addresses #=3D> ['mikel@test.lindsaar.net', 'ada@test.lindsaar.n= et'] ---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? >=20 > I am refering to this to help me: > https://github.com/mikel/mail/blob/master/README.md >=20 > But unfortunately it doesn't say much in the tutorial. Scroll through the readme file. --=20 Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?" --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iEYEARECAAYFAlHj6xAACgkQtddqM0QFuLId+ACgzgURoWCSt0R5T5CEWmMdbUhq VssAni/qcyfMi0oHINFzLfAmLMlJZbCp =dDF8 -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--