Bugs: Browse | Submit New | Admin

[#25771] tmail not parsing body of gmail messages

Date:
2009-05-04 03:36
Priority:
3
Submitted By:
charlie mcelfresh (fengolly)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
tmail not parsing body of gmail messages

Detailed description
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. 

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item