Bug 324137

Summary: Changing servername on an existing imap-account flushes all local emails
Product: [Frameworks and Libraries] Akonadi Reporter: Søren Holm <sgh>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: dvratil, kdepim-bugs, vkrause
Priority: NOR    
Version: 4.11   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Søren Holm 2013-08-27 21:40:21 UTC
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.
Comment 1 Daniel Vrátil 2013-08-28 13:15:55 UTC
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.