Bug 265326

Summary: KMail does not delete outdated information from the cache files of the IMAP folders
Product: [Applications] kmail Reporter: Sergey Y. Afonin <asy>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: philipp
Priority: NOR    
Version: 1.13.5   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sergey Y. Afonin 2011-02-03 19:42:18 UTC
Version:           1.13.5 (using KDE 4.5.5) 
OS:                Linux

I found that the cache files contain information about the long-deleted messages. For example I have folper "postmaster" with 52 messages. But

$ cat ~/.kde/share/apps/kmail/imap/.1499195625.directory/.INBOX.directory/postmaster | grep "From " | wc -l
29538

In some case this files have size in hundreds Mb and processed too slow when recreating indexes. This is a very old bug. I found the headers with date 2003 year.

Reproducible: Didn't try
Comment 1 Ph. Marek 2011-10-04 11:28:41 UTC
Same bug for me too - an empty folder has several MB of cache file associated.
Comment 2 Ph. Marek 2011-10-04 11:29:18 UTC
Forgot to say:

Version 1.13.7
KDE 4.6.5
Comment 3 Laurent Montel 2015-04-12 10:25:31 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.