Skip to content
Snippets Groups Projects
Commit bddffbe8 authored by Stéphane Wirtel's avatar Stéphane Wirtel
Browse files

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

bzr revid: stephane@openerp.com-20100506164147-vpfqlk3ppvqqkd9n
parent a6a41d78
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment