Remember, in Kmail -> Settings -> Configure Kmail -> Misc -> On program exit, perform these tasks. There is an option called "Empty Trash". Sometimes its checked by default and Kmail deletes all your messages on exit which is really annoying at times.
wouldn't this delete only the trash folder ? Isn't that a good thing unless you store messages in your trash folder?
-- Warm Regards ~~~~~~~~~~~~~~~ Vinayak http://theregoesanotherday.blogspot.com/
It is not who is right, but what is right, that is of importance.