summaryrefslogtreecommitdiff
path: root/addons/fetchmail/models
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-11-14 15:01:50 +0100
committerNicolas Martinelli <nim@odoo.com>2017-11-14 15:41:17 +0100
commitdde554726b301e42aaa297f899e6fcb83d9e9e63 (patch)
treeccb525700c9ce348b65a5aca5b8c673284066707 /addons/fetchmail/models
parentb52244e15bf70253b53d32cc1122705f229471c3 (diff)
[FIX] fetchmail: P3 compatibility
Fixes #20857 opw-782318
Diffstat (limited to 'addons/fetchmail/models')
-rw-r--r--addons/fetchmail/models/fetchmail.py2
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))