Bug 377344 - Some emails are duplicated
Summary: Some emails are duplicated
Status: RESOLVED DUPLICATE of bug 283682
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.2.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-07 18:45 UTC by gugs.ml
Modified: 2017-03-22 00:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
View of a thread with duplicated emails (52.64 KB, image/png)
2017-03-07 18:45 UTC, gugs.ml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gugs.ml 2017-03-07 18:45:30 UTC
Created attachment 104441 [details]
View of a thread with duplicated emails

Some of the emails I receive are duplicated in Kmail. See screenshot attached 
for some example.

Not all the emails received are duplicated; it happens frequently, but not 
always. I could not find any pattern for the duplicated emails; However, I am 
the impression that it is related with emails coming from mailing-lists.

If I use the "Delete duplicated emails", one of the duplicated email is 
deleted.

I am using Kmail 5.2.3 from debian testing. I retrieve my emails with pop3.

Using Kmail's view source option, I compared the two copies of a duplicate 
email (using ediff in a text editor). They were completely identical .

I also had a look in the folder containing the emails (maildir). "Greping" 
with a string that appears in a duplicate email, I had only one match.

This would means that the email is not duplicated in the maildir folder, but 
only in Kmail's display (also in akonadi db?).

I run a akonadictl fsck and restarted Kmail, but it did not change anything.

Feel free to contact me for any additional information I could provide.

Thank you.
Best regards
Comment 1 ianseeks 2017-03-08 10:05:30 UTC
I can confirm that this happens with kmail/akonadiserver on the following version:
opensuse:tumbleweed:20170304
Qt: 5.7.1
KDE Frameworks: 5.31.0
KDE Plasma: 5.9.2
kwin 5.9.3
kmail2 5.4.2
akonadiserver 5.4.2
Kernel:  4.10.1-1-default
Comment 2 ianseeks 2017-03-17 08:34:45 UTC
I can confirm that this happens with kmail/akonadiserver on the latest version 5.4.3:
opensuse:tumbleweed:20170315
Qt: 5.7.1
KDE Frameworks: 5.31.0
KDE Plasma: 5.9.2
kwin 5.9.3
kmail2 5.4.3
akonadiserver 5.4.3
Kernel:  4.10.2-1-default
Nouveau:  1.0.13_2.2
Comment 3 Daniel Vrátil 2017-03-20 22:46:13 UTC
Do you have any local filters? If yes, could you see if maybe disabling them temporarily prevents the duplicates from appearing?
Comment 4 ianseeks 2017-03-21 09:40:00 UTC
I do have local filters because they are very useful and something i don't want to be without. i shall try with them disabled for a week and report back to this bug report.
Comment 5 ianseeks 2017-03-21 16:03:24 UTC
I've just done a few hours of testing using no filters on incoming emails. (i uncheck the "Apply filter to incoming messages" on each filter.)  i now just click on the inbox and click 'Folders/Apply all filters on Folder'.  I has so far not produced a duplicate email so its looking like filters on incoming is the culprit.  I'll keep testing and try and find a related bug report on filters to update.
opensuse:tumbleweed:20170317
Qt: 5.7.1
KDE Frameworks: 5.31.0
KDE Plasma: 5.9.2
kwin 5.9.3
kmail2 5.4.3
akonadiserver 5.4.3
Kernel:  4.10.3-1-default
Nouveau:  1.0.13_2.2
Comment 6 Daniel Vrátil 2017-03-22 00:03:16 UTC

*** This bug has been marked as a duplicate of bug 283682 ***