Hi Olivier. > File names must be unique per directory in this "virtual" file system Yes I understood this. But it's my first file...
How to reproduce this bug : I create a vm for test this bug. I install openerp and an unique french database without demonstration data I install with wizrd crm, knowledge (with default options) I install the module fetchmail. I create a new acount gmail for this test. I create my server mail pop.gmail.com (ssl) with login/passwd info in openerp with modele crm.lead. I confirm. I send a first simple email without attachment. The fetch works. I create a simple text file toto.txt I send a second email with toto attachment. The fetch don't works. [2011-11-22 10:36:24,610][testmail] INFO:imap:fetchmail start checking for new emails on gmailtestfetch [2011-11-22 10:36:25,041][testmail] WARNING:pop:[01]: ValidateError [2011-11-22 10:36:25,042][testmail] WARNING:pop:[02]: Error occurred while validating the field(s) name,parent_id,res_model,res_id: File name must be unique! I reproduce this bug on 2 VM (gentoo and ubuntu 11.10 server) I reproduce this bug with and without the option add attachment. >> I suppose your use case involves receiving multiple mails with the same file >> attached, related to the same resource. As you can see, It's not the usecase now, but it's could be true later :) The name of the file seem is detected in the att[0] in mail_gateway/mail_gateway.py I think the module must make 2 create for this file, or somethings is wrong in detection name file... -- 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: New 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

