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

[FIX] crm: mailgateway -> If not header, return an empty string

bzr revid: stephane@openerp.com-20100423132422-zg7arhxh7u0dn7vr
parent 988e3dc8
Branches
Tags
No related merge requests found
......@@ -168,8 +168,8 @@ class email_parser(object):
def _decode_header(self, s):
from email.Header import decode_header
s = decode_header(s)
return ''.join(map(lambda x:self._to_decode(x[0], [x[1]]), s))
s = decode_header(s)
return ''.join(map(lambda x:self._to_decode(x[0], [x[1]]), s or []))
def msg_new(self, msg):
message = self.msg_body_get(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment