Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: menno on March 15, 2010, 07:43:33 PM

Title: Automatic addressbook
Post by: menno on March 15, 2010, 07:43:33 PM
Hi,

How do I set this up so it's enabled as a default for all users?

At the moment it seems to be disabled until they go into settings to enable it.

Cheers,
Menno
Title: Automatic addressbook
Post by: rosali on March 15, 2010, 08:20:09 PM
Find in automatic_addressbook.php:

if ($rcmail->config->get('use_auto_abook'))

and replace with:

if ($rcmail->config->get('use_auto_abook', true))
Title: Automatic addressbook
Post by: menno on March 16, 2010, 07:30:01 AM
Quote from: rosali;26152Find in automatic_addressbook.php:

if ($rcmail->config->get('use_auto_abook'))

and replace with:

if ($rcmail->config->get('use_auto_abook', true))

Cool pointed me in the right direction. I found that this didnt quite work, as the plugin checks the setting in lots of places, eg in register_recipients function when sending mail, etc .

So for anyone else trying to do this, what I did was I had to replace every instance of

$rcmail->config->get('use_auto_abook')

with

$rcmail->config->get('use_auto_abook', true)

apart from in the function save_prefs.

Cheers,
Menno
Title: Automatic addressbook
Post by: JocelynD on August 27, 2011, 09:19:30 AM
Fix commited in r17 (http://code.crapouillou.net/projects/roundcube-plugins/repository/revisions/17)