I don't know if it's a fetchmail problem only or an gateway problem.
if it's a gateway problem, the very simple solution :
in mail_gateway.py, replace the line 577
attach = attachments.items(),
by this :
attach = [],
It's working for me.
But if it's can avoid side effect , because it's only a fetchmail problem,
we must add a parameter to process_mail fonction (attach_history_ignore=False)
and send it at True in fetchmail fonction.
and for in line 557
attach = attachments.items() if
attach_history_ignore else []
thx to tell me what is the best way.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/892273
Title:
fetchmail mail_gateway don't accept attachment 6.0.3
Status in OpenERP Server:
Confirmed
Bug description:
Openerp 6.0.3. Module Fetchmail.
It's working when I send a simple mail.
my mail is fetched.
When my mail have an attachment.
It's fail with this message.
WARNING:pop:[02]: Error occurred while validating the field(s)
name,parent_id,res_model,res_id: File name must be unique!
In the code it's the line in mail_gateway/mail_gateway.py
attachments.append(att_obj.create(cr, uid,
{'res_model':case._name,'res_id':case.id,'name': att[0], 'datas':
base64.encodestring(att[1])}))
that's don't work... the name att[0] seem correct...
I need another module for that's work ? or a config ?
Module installed :
base
base_action_rule
base_calendar
base_setup
board
crm
document
document_webdav
fetchmail
knowledge
mail_gateway
process
resource
web_livechat
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/892273/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp