Hello all,
I have an ageing Atmail installation (old 4.x version in perl) that I'm working to convert to Roundcube. I started with a Horde migration script I found on
http://trac.roundcube.net/wiki/Plugin_Repository, and adapted it to migrate the Atmail addressbook including groups into a Roundcube user's addressbook, all using the user login hook. I'd like some experienced eyes to look over my work and provide suggestions about code quality and/or how to make it better.
https://github.com/mrballcb/import_atmail_contactsI've run this against live data (on a test system) and it works properly for me. Anybody with a similar system who can test this against live data is encouraged to provide feedback and results.
One enhancement I would like guidance on:
I would like to be able to store an "addressbook_migrated" state in the user configuration. I'm hesitant to touch the preferences field in the users table as I am not sure if that's the right place. I've not researched this enough (at all actually) to figure out how to do it. If anybody could provide links to documentation or code samples where I could see how it's best done, I would be most appreciative.