Author Topic: Automatic addressbook  (Read 5540 times)

Offline menno

  • Newbie
  • *
  • Posts: 5
Automatic addressbook
« 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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Automatic addressbook
« Reply #1 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))
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline menno

  • Newbie
  • *
  • Posts: 5
Automatic addressbook
« Reply #2 on: March 16, 2010, 07:30:01 AM »
Quote from: rosali;26152
Find 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

Offline JocelynD

  • Newbie
  • *
  • Posts: 6
Automatic addressbook
« Reply #3 on: August 27, 2011, 09:19:30 AM »
Fix commited in r17