** Branch linked: lp:~openerp-dev/openobject-addons/uco-dev-addons1

-- 
In Lead shows HTML from email rather than plain text
https://bugs.launchpad.net/bugs/644325
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: In Progress

Bug description:
With this mail the first part is HTML only, no plain text version, and the 
footer in plain text only no html. Mail source is attached

This type of mail is not being handled very well by mailgate. The crm module 
will automatically convert HTML to plain text .. but only if that HTML is part 
of a multipart email message. The example you gave does not have multiparts, 
just a "Content-Type: 
text/html" header. The CRM mail import does not detect this needs to be run 
through the HTML to text converter, and thus you get the email with HTML tags.

The fix for this is not simply to do the same as the multipart decoding, as the 
headers are named differently when the message is not multipart.

The key things are these headers in the email:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
        charset="UTF-8"

<FONT face=3D"Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" [...]



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to