[saas-2] mass_mailing: message_route_check_bounce produces a stack trace unregistering bounce statistics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
If the mail_id contained in the "To" address of the bounce message does not match any statistics documents, the method set_bounced returns no ids producing the following stack trace in the calling method:
2014-02-04 09:43:40,085 13240 ERROR comansys_
Traceback (most recent call last):
File "/home/
context=
File "/home/
routes = self.message_
File "/home/
if not self.message_
File "/home/
email_from, email_to, message_id, bounced_mail_id, bounced_model, bounced_thread_id)
UnboundLocalError: local variable 'bounced_model' referenced before assignment
This issue may occur:
- if more than one database share the same incoming mail server (i agree ... not really recommanded), or
- if some statistics documents have been deleted
Anyway, the fetchmail process stops ignoring (forever) all other messages in its incoming queue.
Expected behaviour: if the set_bounced method produces no ids, the message_
Many thanks to fix this issue on [saas-2]
tags: | added: maintenance |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
Linked to opw-603717