Prev: Test your ruby skill
Next: Ruby can't subtract ?
From: nico itkin on 28 Oct 2009 12:12 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 -- Posted via http://www.ruby-forum.com/.
From: Brian Candler on 28 Oct 2009 12:41 nico itkin wrote: > 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? -- Posted via http://www.ruby-forum.com/.
From: nico itkin on 29 Oct 2009 06:57 nico itkin wrote: > 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 -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: Test your ruby skill Next: Ruby can't subtract ? |