How to fix KMail not starting


Last night, I suddenly could not start KMail anymore.

Konsole revealed this:

$ kmail
org.kde.pim.kmail: setFcc: collection invalid  ""
We have an error during reading password  "Entry not found"
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
fish: Job 1, 'kmail' terminated by signal SIGSEGV (Address boundary error)

Luckily, I quickly found a fix:

rm ~/.local/share/kmail2/autosave/*

Don’t know what caused this problem and why KMail chokes on autosave files, but at least I can now start it again.