Bug 282296 - mails appear twice in .local/share/akonadi/file_db_data
Summary: mails appear twice in .local/share/akonadi/file_db_data
Status: RESOLVED DUPLICATE of bug 283682
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-18 17:17 UTC by Christian Trippe
Modified: 2012-02-24 18:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2011-09-18 17:17:56 UTC
Version:           4.7 (using KDE 4.7.1) 
OS:                Linux

When downloading mails via a pop3 account, it happens that mails appear twice in .local/share/akonadi/file_db_data but only once in .local/share/.local-mail.directory/

In this case kmail shows the message twice. If you now tell kmail to remove duplicate messages in the folder both messages in kmail are deleted and also both entries in .local/share/akonadi/file_db_data and the one in .local/share/.local-mail.directory/.

It may be that this only happens for mails where a filter on incoming messages is applied which directly moves them to another folder. I will verify this and report back.

Other maybe useful informations:
- My local mail folder is a maildir resource.
- I am affected by bug 282160 "akoandi does not delete mails from .local/share/akonadi/file_db_data"
- Thomas McGuire said in bug 271231, that this is not a bug of the pop3 resource.

Please tell me what additional information may be useful.

Reproducible: Sometimes

Steps to Reproduce:
see above

Actual Results:  
some mails are shown twice in kmail

Expected Results:  
mails are only shown once

OS: Linux (x86_64) release 2.6.37.6-0.7-desktop
Compiler: gcc
Comment 1 Christian Trippe 2011-09-19 04:50:33 UTC
Because the severity was changed to normal, I want to point out why I filled this as major. The description of major says "causes data loss" and this is exactly the case if you call "Remove duplicated messages" in kmail, as the duplicated message is completely lost in this case.
Comment 2 Christian Trippe 2011-09-21 19:13:51 UTC
I have run now without applying filters directly on downloaded mail and have not seen this issue for several days while it appear regularly several times a day when filters are used. So maybe this is a bug in kmails filters?
Comment 3 Christian Trippe 2011-10-09 04:52:18 UTC
An Update, the problem is still present but changed a bit after the update to 4.7.2:

Some mails appear still twice first in kmail, but after a short moment sometimes only one is displayed in kmail and the other is gone.
Comment 4 Christian Trippe 2012-02-24 18:46:27 UTC
This only happens for filtered messages. So probably a bug with kmails filters, so this is probably a dup of bug 283682

*** This bug has been marked as a duplicate of bug 283682 ***
Comment 5 Hussam Al-Tayeb 2012-02-24 18:55:59 UTC
I still see this bug in latest 4.8 branch from git. Funny thing is it only happens in mail that doesn't get filtered (stays in inbox folder).