← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 644325] Re: In Lead shows HTML from email rather than plain text

 

Hello,

The fix has been committed to : lp:~openerp-dev/openobject-addons/uco-dev-addons1
with revision: 3456 uco@xxxxxxxxxxx-20101111101426-6t71jz3pk8jtyk6a

Soon, it will be merged into main addons.

Thanks.

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
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: Fix Committed

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" [...]