fetchmail creates several mail.message records for the same email

Bug #944175 reported by Lorenzo Battistini
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 1

Bug Description

OpenERP 6.0 and 6.1

Configure an IMAP incoming mail server that fetches from <email address hidden>
1- The first fetched mail is correctly created (from <email address hidden> to <email address hidden>)
2- Answer to that email through the 'communication & history' tab (from <email address hidden> to <email address hidden>)
3- The customer answers (from <email address hidden> to <email address hidden>)
4- Support team answers (from <email address hidden> to <email address hidden>)
5- The customer answers again (from <email address hidden> to <email address hidden>)

When fetchmail fetches this fifth email, it duplicates the created mail.message
At the next customer's answer, fetchmail will create 3 mail.message for the same email, and so on.

You can notice this behaviour on https://openerp.my.openerp.com too

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Lorenzo Battistini,

I have tested your scenario, But I did not face any problem. It's working fine at my end. I have attached the video for your reference. Would you please check it.

So would you please try again and notify us where you have faced the problem.

Thanks and waiting for your reply!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Hello Amit,
if you go to minute 5:43 of your video, you can see the duplicated messages from "customer":
both communications start with
"Amit ... wrote ... on 2012-03-21 14:17:26"

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Lorenzo,

Thanks for your useful response on this.

Now I have reproduce the same at my end. The problem occurs when fetchmail fetches this fifth email, it duplicates the created mail.message.

Thanks again!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Maybe it might help to have a unique constraint on the message_id field in mail_message_common. Of course warnings should be logged when messages can not be added because of this constraint..

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.