[FIX] mail: remove the unused charector generated by the html2plaintext function from the message.

bzr revid: nco@tinyerp.com-20120223054022-9l9hxv3ssiajdf9p
This commit is contained in:
Nimesh (Open ERP) 2012-02-23 11:10:22 +05:30
parent d081af362c
commit e6131b194f
1 changed files with 2 additions and 2 deletions

View File

@ -441,8 +441,8 @@ class mail_message(osv.osv):
if part.get_content_subtype() == 'html':
msg['body_html'] = content
msg['subtype'] = 'html' # html version prevails
#this filter will remove "
" unused charector which generaed by space
body = filter(lambda c: c not in "
", tools.ustr(tools.html2plaintext(content)))
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'):