[FIX] fetchmail: Decode correcly the body and the subject of the emails (ter)

bzr revid: stephane@openerp.com-20100506164147-vpfqlk3ppvqqkd9n
This commit is contained in:
Stephane Wirtel
2010-05-06 18:41:47 +02:00
parent a6a41d78b0
commit bddffbe8e6
+1
View File
@@ -195,6 +195,7 @@ class email_server(osv.osv):
msg['message-id'] = message_id
def _decode_header(txt):
txt = txt.replace('\r', '')
return ' '.join(map(lambda (x, y): unicode(x, y or 'ascii'), decode_header(txt)))
if 'Subject' in fields: