openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27209
[Bug 1276097] [NEW] [saas-2] mass_mailing: message_route_check_bounce produces a stack trace unregistering bounce statistics
Public bug reported:
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_void_saas-2 openerp.addons.fetchmail.fetchmail: Failed to fetch mail from pop server localhost.
Traceback (most recent call last):
File "/home/openerp-comansys/instance/addons/fetchmail/fetchmail.py", line 229, in fetch_mail
context=context)
File "/home/openerp-comansys/instance/addons/mail/mail_thread.py", line 995, in message_process
routes = self.message_route(cr, uid, msg_txt, msg, model, thread_id, custom_values, context=context)
File "/home/openerp-comansys/instance/addons/mass_mailing/mail_thread.py", line 68, in message_route
if not self.message_route_check_bounce(cr, uid, message, context=context):
File "/home/openerp-comansys/instance/addons/mass_mailing/mail_thread.py", line 59, in message_route_check_bounce
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_route_check_bounce method should simply break process and return
False.
Many thanks to fix this issue on [saas-2]
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1276097
Title:
[saas-2] mass_mailing: message_route_check_bounce produces a stack
trace unregistering bounce statistics
Status in OpenERP Addons (modules):
New
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_void_saas-2 openerp.addons.fetchmail.fetchmail: Failed to fetch mail from pop server localhost.
Traceback (most recent call last):
File "/home/openerp-comansys/instance/addons/fetchmail/fetchmail.py", line 229, in fetch_mail
context=context)
File "/home/openerp-comansys/instance/addons/mail/mail_thread.py", line 995, in message_process
routes = self.message_route(cr, uid, msg_txt, msg, model, thread_id, custom_values, context=context)
File "/home/openerp-comansys/instance/addons/mass_mailing/mail_thread.py", line 68, in message_route
if not self.message_route_check_bounce(cr, uid, message, context=context):
File "/home/openerp-comansys/instance/addons/mass_mailing/mail_thread.py", line 59, in message_route_check_bounce
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_route_check_bounce method should simply break process and
return False.
Many thanks to fix this issue on [saas-2]
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1276097/+subscriptions
Follow ups
References