[Kde-pim] KMail dimap cache migration

Kevin Krammer kevin.krammer at gmx.at
Thu May 20 18:27:05 BST 2010


Short follow-up

On Wednesday, 2010-05-19, Kevin Krammer wrote:

> 1) let the IMAP resource sync the collection tree and then, for each
> collection, look up the cache collection. Load the cache collection's items
> and set the remoteId to the UID from the index file.
> Use ItemCreateJob with a session object that uses the resource's
> identifier, thus making the adding "invisible" to the resource (it is
> using the same session identifier, its monitor filters on that).

I uses this approach and it seems to work as far as I have tested it.
The cache "recovery" operations are configurable in kmai-migratorrc, by 
default the only active option is to add items that are new according to the 
cache index.

So if you intend to test filling the cache with previously synched items, 
you'll have to activate that

kwriteconfig --file kmai-migratorrc --group "Disconnected IMAP" --key 
ImportCachedMessages true

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100520/4ad088b8/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