[Kde-pim] KMail Migration

Thomas McGuire mcguire at kde.org
Sun Apr 18 15:51:12 BST 2010


Hi,

Volker, Casey, Till and I had a short discussion on the topic of KMail data  
migration, which I'll try to summarize here.

- For reading old KMail index files, a new library like "libkmailindexreader" 
  will be created. The advantage of a small library is that it is easier to 
  unit-test it
- After some back and forth, we came to the following solution for migrating 
  the KMail data, which includes mixed mode trees (mbox and maildir) and the 
  index files:
  Kevin's filestore classes will be used to create a new mixed mode resource. 
  The mbox and maildir libraries will be used internally.
  The old maildir resource can be removed, everything it does will also be 
  done by the new mixed mode resource
  The old mbox resource stays around, since system mail is often delivered to 
  mbox files.
  The mixed mode resource has support for reading old KMail index files on the 
  initial sync, so that the flags+tags can be migrated.
  Advantages: No need to actually copy data around, the data can stay in the 
              place were it currently is.
- The IMAP cache of KMail 1 might not have been synced with the IMAP server
	- deleted mails: Not important, the user will get the mail back when 
                    migrating though
	- modified mails: same as deleted+added
	- added mails: These need to be found, as otherwise they will be lost. One 
                  can probably look at the X-UID header of the mails in the 
                  cache: If the mail was not yet synced, it is either 0 or not 
                  existent(?)
- Cache migration for disconnected IMAP is very difficult, and not high on the 
  priority list

Please correct me if any of that information is not entirely accurate, this 
summary was mostly from memory.

Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100418/356951f9/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list