Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-584610-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584610-nep/+merge/144240

Hello,

Emails without subject are not getting fetched from Fetchmail.

This fixes the issue.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584610-nep/+merge/144240
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-584610-nep.
=== modified file 'mail/mail_thread.py'
--- mail/mail_thread.py	2012-08-10 11:48:38 +0000
+++ mail/mail_thread.py	2013-01-22 08:33:22 +0000
@@ -358,7 +358,7 @@
             match = tools.reference_re.search(references)
             if match: res_id = match.group(1)
         if not res_id:
-            match = tools.res_re.search(msg['subject'])
+            match = tools.res_re.search(msg.get('subject', ''))
             if match: res_id = match.group(1)
         if res_id:
             res_id = int(res_id)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to