Bug 321357

Summary: zillions of grayed duplicate mails in IMAP folder
Product: [Applications] kmail2 Reporter: jolay <jolay606>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: aspotashev
Priority: NOR    
Version: 4.10.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kontact kmail2 screenshot

Description jolay 2013-06-19 09:02:53 UTC
Linux 3.8.1-30-desktop SMP PREEMPT x86_64 OpenSUSE Tumbleweed
zypper info kontact
Repository: openSUSE:12.3:Update
Name: kontact Version: 4.10.3-1.30.7 Arch: x86_64 Vendor: openSUSE
Installed: Yes Status: up-to-date

The bug appeared one time I started kontact, mainly in my IMAP income folder and one "archives" subfolder where new mails are automatically filtered. 

I read something about corrupt index but the KDE techbase about that is for Kmail1 so I tried (and still am trying) to update the whole IMAP folders without success. The problem is getting worse : the screenshot shows 15465 email junks and by the time I write this message the number increases continually (16059...)

How do I solve such a mess ?

Reproducible: Always

Actual Results:  
bug

Expected Results:  
no bug
Comment 1 jolay 2013-06-19 09:04:39 UTC
Created attachment 80627 [details]
kontact kmail2 screenshot
Comment 2 jolay 2013-11-18 16:14:15 UTC
I checked again today and after two or three minutes the problem disappeared automagically,  from 20850 ghost emails to 11 real ones. Then, ghost emails started to repopulate my inbox folder again.

I think I have the solution : The mail filter agent (?)
When I reconfigured my laptop/kontact to use (D)IMAP instead of POP + local folders, I forgot to reconfigure the filter rules and the actions "Move to folder" get empty folder names (the corresponding local folders were deleted). 
May be that triggered infinite loop (?) since the filtered mail never be removed from the inbox.

I shall eventually end up clearing all filters since archiving theses e-mails in another folder on the same IMAP is apparently another bad idea (never ending mail filter agent, blocked at 0% progress).

Best regards

zypper info kontact
Repository: openSUSE Current:Update 
Name: kontact Version: 4.10.5-1.100.2
Arch: x86_64 Vendor: openSUSE
Installed: Yes Status: up-to-date
Comment 3 Denis Kurz 2016-09-24 18:21:25 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 22:12:24 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.