fetchmail: emails having an error during import are set as SEEN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | ||
7.0 |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
The fetchmail module imports emails in OpenERP from IMAP or POP3 servers. It browses the UNSEEN emails in the mailbox, then imports them in OpenERP, eventually creating associated records (claims, leads, ...).
This bug happens with IMAP and POP3, but slightly differently.
Scenario:
I setup OpenERP to create claims in OpenERP for every mail that is received in a mailbox.
For some reason, some mails fails to be imported. However, OpenERP set them as SEEN (for IMAP; it deletes them on a POP server), so they They will never be imported again because they are now read on the server. So we can't know which emails have generated a claim and which have not.
Workaround: set all the emails to unread from the inbox, they will be imported again and OpenERP will ignore the duplicates using the message-id.
Expected:
It let them as UNSEEN when it could not import them so we have more chance to detect the failure, and as soon as the origin of the former failure is corrected, the emails are imported again.
Related branches
- Naresh(OpenERP): Pending requested
-
Diff: 39 lines (+8/-8)1 file modifiedfetchmail/fetchmail.py (+8/-8)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
assignee: | OpenERP Publisher's Warranty Team (openerp-opw) → nobody |
Hello,
This issue is fixed with following branch:
branch: lp:~openerp-dev/openobject-addons/7.0-opw-605667-ado
revision-id: <email address hidden>
revision-no: 9963
Soon our experts will review and merge it with stable 7.0 addons.
Regards,
Amit