From 220881df66c2c9ca4ff1c9ef9f55a0935ae1e450 Mon Sep 17 00:00:00 2001 From: Sebastien Beau Date: Mon, 16 Dec 2013 17:16:40 +0100 Subject: [PATCH] [FIX] fix import of email. We have to call super with the server_id and not the ids --- fetchmail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetchmail.py b/fetchmail.py index 9710338b..7272ceaf 100644 --- a/fetchmail.py +++ b/fetchmail.py @@ -55,7 +55,7 @@ class fetchmail_server(orm.Model): return ctx def fetch_mail(self, cr, uid, ids, context=None): - for id in ids: - ctx = self.get_context_for_server(cr, uid, id, context=context) - super(fetchmail_server, self).fetch_mail(cr, uid, ids, context=ctx) + for server_id in ids: + ctx = self.get_context_for_server(cr, uid, server_id, context=context) + super(fetchmail_server, self).fetch_mail(cr, uid, [server_id], context=ctx) return True