summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-08-28 16:42:17 +0200
committerChristophe Simonis <chs@odoo.com>2014-08-28 16:51:11 +0200
commit8046b7367d7892b582c7130d97a644f952173424 (patch)
tree6a3f82018b8bd2a8f7b9ffec43951af0de859c83 /addons/fetchmail/fetchmail.py
parent5e6e1303e3c49b157fe1e624eaca3b28167b55c7 (diff)
parent7e117b18a01d55c85856050eba7f1983bc2c34e9 (diff)
[MERGE] forward port of branch saas-5 up to 7e117b1
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
-rw-r--r--addons/fetchmail/fetchmail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index b496b8bca76..3a465577c96 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -235,12 +235,12 @@ openerp_mailgate: "|/path/to/openerp-mailgate.py --host=localhost -u %(uid)d -p
save_original=server.original,
strip_attachments=(not server.attach),
context=context)
+ pop_server.dele(num)
except Exception:
_logger.exception('Failed to process mail from %s server %s.', server.type, server.name)
failed += 1
if res_id and server.action_id:
action_pool.run(cr, uid, [server.action_id.id], {'active_id': res_id, 'active_ids': [res_id], 'active_model': context.get("thread_model", server.object_id.model)})
- pop_server.dele(num)
cr.commit()
_logger.info("Fetched %d email(s) on %s server %s; %d succeeded, %d failed.", numMsgs, server.type, server.name, (numMsgs - failed), failed)
except Exception: