Hi,
I have modified the code as follows:
#1 config/config.inc.dist
(i) Load config and set default to true (plugin is enabled by default then) (ii) Moved database dsn to config
#2 Intaller
(i) Removed installer (got a http 500 error). I think we do not expect to much if we only provide the sql scripts.
#3 General
(i) I defined the automatic addressbook as readonly *). I think it should not be possible to add manually created items to the automatic addressbook. Does anyone have a clue how to disable the import button aswell? (ii) If a automatically added contact is edited, the contact is moved to the default addressbook and removed from the automatic addressbook. I think when a user edits a contact, we can assume that it is accepted as a permanent personal contact. My code modifications presume that the default addressbook source is always "0". Is this right or would it be better to use a configurable value?
Regards, Roland
*) May be this works only because app.js is inconsequent at this point. It disables the add button, but the import button is still enabled. Also it is still possible to edit a contact, which is inconsequent but necessary for my purpose.
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/UU/11A3LSEh/automatic_addressboo.zip Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/dev/