[FIX] mail: remove the unused charector from the message body using filter.

bzr revid: nco@tinyerp.com-20120221131238-czel3dz0b51ac2dz
This commit is contained in:
Nimesh (Open ERP)
2012-02-21 18:42:38 +05:30
parent 7675f273fd
commit d081af362c
+2 -1
View File
@@ -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'):