diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 564c1c11e5486b85379e388f9e1f4fde2e6f1b40..d8ae92654e33797aa37d9ed3057eabeb9adc254a 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -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: