read attached document from .eml file

N

nico itkin

Hi,

I have to read .eml file with ruby in order to get and extract
attachements, does anything exist on this subject ?

Thanks in advance ,

Nicolas
 
B

Brian Candler

nico said:
I have to read .eml file with ruby in order to get and extract
attachements, does anything exist on this subject ?

Did you google "ruby eml"? What did you make of the projects that turns
up?
 
N

nico itkin

nico said:
Hi,

I have to read .eml file with ruby in order to get and extract
attachements, does anything exist on this subject ?

Thanks in advance ,

Nicolas

Nothing much, there is only projects dealing with conversion from msg to
eml or other email format.

Well an eml file is just a raw data email , so you can parse it with the
rails method Tmail::Mail.parse(raw_data).

When the .eml file had been generated from a MAC, you need to exchange
\r by \n otherwise rails understands it as a single line file.

That's it ! thanks for your answer !!

Nico
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top