Add ability to migrate status data across backends

If when we request a LocalStatus folder, the folder has to be created,
we look whether the other backend has data, and if it does we migrate
it to the new backend.

The old backend data is left untouched, so that if you change back say
from sqlite to plaintext, the older data is still there.  That should
not lead to data loss, only a slower sync while the status folder gets
updated.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
Abdo Roig-Maranges
2013-07-28 14:03:46 +02:00
committed by Eygene Ryabinkin
parent 214137eb7b
commit 1b954c3b4c
3 changed files with 54 additions and 49 deletions

View File

@ -14,6 +14,8 @@ OfflineIMAP v6.5.6 (YYYY-MM-DD)
to IMAP server (Abdó Roig-Maranges)
* Allow to sync GMail labels and implement GmailMaildir repository that
adds mechanics to change message labels (Abdó Roig-Maranges)
* Allow to migrate status data across differend backends
(Abdó Roig-Maranges)
OfflineIMAP v6.5.5 (2013-10-07)