In Lead shows HTML from email rather than plain text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
OpenERP R&D Addons Team 1 |
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-
Content-Type: text/html;
charset="UTF-8"
<FONT face=3D"Default Sans Serif,Verdana,
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Screenshot shows how the email is shown as a Lead in web client