[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user