Version: (using KDE 4.1.1) Compiler: gcc 4.3.2 OS: Linux Installed from: Compiled From Sources When doing a hard poweroff (e.g. running out of battery on a notebook that lacks proper ACPI support or power outage on a desktop box) while kmail is running, kmail forgets about the configured IMAP accounts, and goes to the account setup wizard on next startup. I'm not sure if this happens all the time, but it has happened a number of times here.
This has just happened to me even when using the KDE keyboard shortcut to reboot (Ctrl+Alt+Shift+PgUp), as opposed to hard reboot; a clean exit would be expected here.
*** This bug has been marked as a duplicate of bug 169166 ***