Custom backend without DiffEngine

Hi,

I already use combined backend + “DiffEngine” for a couple of year now to synchronize PIM data from a database + emails from IMAP.

It works great except for the RAM consumption. So, I’m planning to abandon the “DiffEngine” for something else. I can retrieve a list of changes since the last check for PIM data (from my database) and emails (from IMAP + MODSEQ).

Any help, hints would be really appreciated :)
thx

Hi magicbelette,

what you have to do is to implement IBackend and ISearchProvider interfaces like the Kopano backend does which doesn’t extend the DiffBackend. Your exporter class (or your backend if you want to keep it in one place) has to implement IExportChanges interface (changes in your system to mobile). Your importer class (or your backend if you want to keep it in one place) has to implement IImportChanges interface (changes on the mobile to your system).

BackendCombined and BackendKopano might give you some ideas for the exporter/importer usage and how to move away from the DiffBackend.

Manfred