Roundcube Community Forum

 

Automatic addressbook

Started by menno, March 15, 2010, 07:43:33 PM

Previous topic - Next topic

menno

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

rosali

Find in automatic_addressbook.php:

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

and replace with:

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

menno

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

JocelynD