Now I can't even reply to the several excellent answers already received - I just watched kmail2 delete my entire gentoo-user folder.
A thorough search of my home dir fails to reveal where mails are hiding. I created a new Maildir (the real one, not that stupid mixed KDE thing) in .kde4/share/apps/kmail/maildir and copied a bunch of stuff there. It got moved per the kmail2 interface - the originals and folders were no longer in the original place, they could be viewed in the new maildir resource. But they could not be found on disk. And then, as I watched, the entire folder tree was removed from the sidebar one folder at a time leaving only the top-most folder. There is nothing on disk. It gets worse. I have a folder for work stuff, counting the total column for each folder shows there are 6562 mails. find and wc on disk returns 4049. So there are 2513 files not on disk that should be. I have no idea where they could be. They are not in .local/share/.local-mail.directory/ They are not in .kde4/share/apps/kmail/ I do not find cache copies in /tmp or /var/tmp I conclude that there must be copies in the mysql that akonadi uses (I thought that was only for email metadata....) But they have to be somewhere as kmail2 is showing them. I also discovered that kmail2 doesn't do changing of IMAP folders at all, it seems to be strictly read-only. I can create folders in that area to my heary's content, nothing shows on disk. Kmail2 doesn't seem to support server-side at all. I can create folders in claws easily enough and they show up, but not the other way round. It doesn't seem to be a delayed update either - 12 hours later is a bit too long for that. Will I log a KDE bug against this? I doubt it. I want nothing more to do with kdepim and dealing with those devs is pain I do not want. I'm subscribed to the kdepim user list and the devs often chip in there. Believe me, the ones answering there are quite confused in general and several sandwiches short of a full picnic. -- alan dot mckinnon at gmail dot com