Bug 324137 - Changing servername on an existing imap-account flushes all local emails
Summary: Changing servername on an existing imap-account flushes all local emails
Status: RESOLVED INTENTIONAL
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.11
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 21:40 UTC by Søren Holm
Modified: 2013-08-28 13:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.