I'm piping mail to a ruby script and parsing it with tmail. It parses the mail body just fine when I send mail from
mac mail. But when I send mail from gmail, this is what I get:
email = TMail::Mail.parse(params[:email])
email.body.to_s looks like this:
body 0000111\n\n\nbody 0000222\n\nbody
0000111<div><br></div><div><br></div><div><br></div><div>body
0000222</div><div><br></div><div><br></div>\n\n'
The Tmail parser does not seem to find the \n\n at the end of the email body. |