I have an imap-account setup. Now I want to change the servername to "localhost". Reproducible: Always Steps to Reproduce: 1. Setup an imap-account and let it fetch all messages 2. Relocate the server to some other host-name 3. Correct the server-name in the imap-account and press ok Actual Results: The local emails are removed/purged and all mails are fetched all over again. Folder-settings like Trash, Drafts etc. are also forgot. Expected Results: Noting should happend. Kmail should correct to the new server as if nothing has happenend and continue operation using that server instead.
There's no way to detect whether the hostname points to the same server after change. If you had changed it to point to a completely different server, fetching new emails would totally screw up the local cache. Therefore flushing the cache and fetching all emails again is the only solution. Secondary, this is not something you would be doing on a daily basis, so I don't see this to be a real problem. Sorry, this cannot be fixed, as it's not really a bug.