credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #06155
[Branch ~credativ/openobject-addons/6.1] Rev 7082: [FIX] Skip emails which cannot be matched due to subject
------------------------------------------------------------
revno: 7082
committer: Craig Gowing (credativ) <craig.gowing@xxxxxxxxxxxxxx>
branch nick: addons
timestamp: Thu 2016-11-24 14:32:51 +0000
message:
[FIX] Skip emails which cannot be matched due to subject
modified:
mail/mail_thread.py
--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1
Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'mail/mail_thread.py'
--- mail/mail_thread.py 2012-08-10 11:48:38 +0000
+++ mail/mail_thread.py 2016-11-24 14:32:51 +0000
@@ -358,8 +358,11 @@
match = tools.reference_re.search(references)
if match: res_id = match.group(1)
if not res_id:
- match = tools.res_re.search(msg['subject'])
- if match: res_id = match.group(1)
+ try:
+ match = tools.res_re.search(msg['subject'])
+ if match: res_id = match.group(1)
+ except ValueError:
+ pass
if res_id:
res_id = int(res_id)
if model_pool.exists(cr, uid, res_id) and hasattr(model_pool, 'message_update'):