[FIX] : for outlook msg_body is blank so put condion for that outherwise it does not gives error while converting to html to plaintext
bzr revid: nco@tinyerp.com-20120217135824-3ewo9lt8f48mwpkn
This commit is contained in:
@@ -417,7 +417,8 @@ class mail_message(osv.osv):
|
||||
if 'text/html' in msg.get('content-type', ''):
|
||||
msg['body_html'] = body
|
||||
msg['subtype'] = 'html'
|
||||
body = tools.html2plaintext(body)
|
||||
if msg['body_html']!='':
|
||||
body = tools.html2plaintext(body)
|
||||
msg['body_text'] = tools.ustr(body, encoding)
|
||||
|
||||
attachments = []
|
||||
|
||||
Reference in New Issue
Block a user