Nimesh Contractor(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-937194-nco into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #937194 in OpenERP Addons: "mail body shows "
https://bugs.launchpad.net/openobject-addons/+bug/937194
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-937194-nco/+merge/93988
Hello,
I have remove the unused character form the message body which is
generated while converting message from html2plaintext.
Thanks,
NCO.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-937194-nco/+merge/93988
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-937194-nco.
=== modified file 'mail/mail_message.py'
--- mail/mail_message.py 2012-01-31 13:36:57 +0000
+++ mail/mail_message.py 2012-02-21 13:19:22 +0000
@@ -441,7 +441,8 @@
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'):
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp