Bug 388155 - Kmail shows duplicate emails - detect automatically on refresh?
Summary: Kmail shows duplicate emails - detect automatically on refresh?
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: 5.7.0
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-22 16:16 UTC by Ivan S
Modified: 2020-05-05 20:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan S 2017-12-22 16:16:50 UTC
When using a GMail account, new emails will appear in multiple folders: Inbox, [Gmail]/All Mail, and [Gmail]/Important. It should be trivial to automatically detect when receiving duplicate emails and delete all except in Inbox.
Comment 1 Alexandre Bonneau 2020-05-05 20:45:53 UTC
This sounds like an XY problem.
Instead of "automatically detecting and deleting" duplicates mails (I can easily imagine how this could go wrong and delete lots of non-duplicated mails), akonadi should strive to _not_ duplicate the mails in the first place!
Comment 2 Alexandre Bonneau 2020-05-05 20:50:57 UTC
I'm adding a comment here instead of creating a new issue, since under Debian Bullseye with akonadi and kmail version `4:19.08.3-1`, I'm getting mail duplicates only in a very specific situation ;
If I open kmail on two different computers at the same time (ie. on my laptop and my workstation).

If only one akonadi server is running on both computers, then everything is fine.
However if I run akonadi server on both computers, everything goes haywire and kmail starts spewing lots (LOTS!..in the hundreds) of duplicates mails.

I hope this helps figuring out any race condition that might happen.