fetchmail mail_gateway don't accept attachment 6.0.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
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_
In the code it's the line in mail_gateway/
attachments.
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
Changed in openobject-server: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
The 'document' module modifies the way attachments (ir.attachment records) are stored, to make them part of a global virtual file system. File names must be unique per directory in this "virtual" file system, in order to make it compatible with WebDav, and FTP bindings.
As you're technically inclined, look at the _check_ duplication( ) in document.py, it prevents creating 2 files with the same name attached to the same document (res_model + res_id).
I suppose your use case involves receiving multiple mails with the same file attached, related to the same resource. In this case, the fetchmail script should perhaps generate a unique file name (e.g. with a random suffix) to avoid name clashes.
PS: I did not confirm the bug yet, as I did not have time to test and reproduce.