Hi,
I've been playing around with the address books a bit and managed to create a small plugin that adds a new address table to the roundcube DB and uses this table in addition to the usual 'contacts' table.
However, what I actually need is to take addresses from an existing external database (an Oracle one..).
In the plugin I extend rcube_contacts and then simply change the table name after creating a new instance. I'm not yet very familiar with roundcube so it's a little difficult to see whether it would be possible to change this to allow a connection to a completely different database instead. Is there a hook that will let me overwrite the function that gets the contacts for a particular address source from the DB?
I had a look at the plugin google_contacts, which does something similar to what I want. Except that it syncs by copying all google addresses into a table in the roundcube DB. This isn't really an option for us as there are way too many users with way too many addresses - we would prefer to not have to sync these but to get them straight from the external database.
If it would make it easier I would also be quite happy to completely disable the existing addressbook functionality and only use the "autocomplete" for new messages, if that autocomplete could refer to my own list of addresses.
Any ideas on this would be greatly appreciated!
Thanks,
Wendy