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
Same bug for me too - an empty folder has several MB of cache file associated.
Forgot to say: Version 1.13.7 KDE 4.6.5
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.