Fetchmail Module Error - WARNING:pop:local variable 'data' referenced before assignment
Bug #643994 reported by
ferchu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using fetchmail module, if you configure an imap account, everything is ok. But if you configure a pop account, you obtain this error (from logger) when you try to fetch mails:
WARNING:pop:local variable 'data' referenced before assignment
I think the problem is in the fetchmail.py file, line 157, because at this point OpenERP try to use de variable data without assign a value previously (unfourtunatly I dont know how to patch this!!!).
Working with trunk addons revision nro. 4944
Related branches
Changed in openobject-addons: | |
status: | New → Confirmed |
milestone: | none → 6.0 |
To post a comment you must log in.
I could solve the problem by making the following change in fetchmail.py file (line 157):
original: process_ email(cr, uid, server. object_ id.model, data[0][1], attach= server. attach, context=context)
res_id = email_tool.
new: process_ email(cr, uid, server. object_ id.model, msg, attach= server. attach, context=context)
res_id = email_tool.
Now I can process mails with my pop account....