diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-11-14 15:01:50 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-11-14 15:41:17 +0100 |
| commit | dde554726b301e42aaa297f899e6fcb83d9e9e63 (patch) | |
| tree | ccb525700c9ce348b65a5aca5b8c673284066707 /addons/fetchmail/models/fetchmail.py | |
| parent | b52244e15bf70253b53d32cc1122705f229471c3 (diff) | |
[FIX] fetchmail: P3 compatibility
Fixes #20857
opw-782318
Diffstat (limited to 'addons/fetchmail/models/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/models/fetchmail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/models/fetchmail.py b/addons/fetchmail/models/fetchmail.py index d12b9ec72a0..e03ef88ac44 100644 --- a/addons/fetchmail/models/fetchmail.py +++ b/addons/fetchmail/models/fetchmail.py @@ -204,7 +204,7 @@ class FetchmailServer(models.Model): pop_server.list() for num in range(1, min(MAX_POP_MESSAGES, num_messages) + 1): (header, messages, octets) = pop_server.retr(num) - message = '\n'.join(messages) + message = (b'\n').join(messages) res_id = None try: res_id = MailThread.with_context(**additionnal_context).message_process(server.object_id.model, message, save_original=server.original, strip_attachments=(not server.attach)) |
