Sometimes it happens that KMail freezes completely at startup, and doesn't recover. This happens in the exec() that is started by KMKernel::allFoldersCollection()
Probably related: bug 223459
This exec() is gone now.
*** Bug 223459 has been marked as a duplicate of this bug. ***