Version: (using KDE KDE 3.5.3) Installed from: Ubuntu Packages The KMail startup time has become very long (15+ seconds). I did some profiling with callgrind and it appears that KMail spends a lot of time processing config files, in particular, kmailrc. My kmailrc file in ~/.kde/share/config had grown to 440KB. Deleting the config file and forcing KMail to recreate it resulted in a 20KB file and a much shorter startup time. On experimentation, the main culprit behind kmailrc growing is when I open a folder for the first time in my IMAP account. This causes lots of state information to be written to the config file.
Created attachment 16928 [details] Callgrind profile of KMail startup with 440KB kmailrc Callgrind profile can be viewed using the kcachegrind tool. Unfortunately I forgot to save a copy of the huge kmailrc file before I deleted it, but I have a smaller one which should still show the problem.
Created attachment 16929 [details] Smaller version of the kmailrc file mentioned in the report - hopefully it will still show the problem.
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.