diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-08-28 16:12:55 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-08-28 16:12:55 +0200 |
| commit | ada9724655b85587cd1b992a6c636800beadd56b (patch) | |
| tree | 82855268b0bfaf05d0dc4cc8aa2303021f286461 /addons/fetchmail/fetchmail.py | |
| parent | 04a56d8f6b401da3c6849dd5581938657e6f450f (diff) | |
| parent | 3509e15cc9abd8ee662acbe8a450c534d5a48645 (diff) | |
[MERGE] forward port of branch 7.0 up to 3509e15
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 5f6379025ae..565996bf961 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: |
