diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index 1693397f6fa..1d84468ca85 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -441,7 +441,8 @@ class mail_message(osv.osv): if part.get_content_subtype() == 'html': msg['body_html'] = content msg['subtype'] = 'html' # html version prevails - body = tools.ustr(tools.html2plaintext(content)) + #this filter will remove " " unused charector which generaed by space + body = filter(lambda c: c not in " ", tools.ustr(tools.html2plaintext(content))) elif part.get_content_subtype() == 'plain': body = content elif part.get_content_maintype() in ('application', 'image'):