[FIX] backport of branch trunk-bug-937194-nco (mail: remove character 
 from message)

bzr revid: rco@openerp.com-20120320082059-w3zm7pyicbb79inh
This commit is contained in:
Raphael Collet
2012-03-20 09:20:59 +01:00
parent c5f809c34a
commit b2b85029ee
+1
View File
@@ -445,6 +445,7 @@ class mail_message(osv.osv):
msg['body_html'] = content
msg['subtype'] = 'html' # html version prevails
body = tools.ustr(tools.html2plaintext(content))
body = body.replace('
', '')
elif part.get_content_subtype() == 'plain':
body = content
elif part.get_content_maintype() in ('application', 'image'):