Author Topic: Automatic addressbook plugin  (Read 9738 times)

Offline diosim

  • Newbie
  • *
  • Posts: 7
Automatic addressbook plugin
« on: December 14, 2010, 11:08:00 AM »
Hi,

Since I installed this plugins I got this errors, but everything works fine :)
 I use Roundcube : 0.4.2  

Code: [Select]
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. address_sources -> addressbooks_list in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. get_address_book -> addressbook_get in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. user_preferences -> preferences_list in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. save_preferences -> preferences_save in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. save_contact -> contact_update in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)
[14-Dec-2010 10:07:10 +0100]: PHP Error: Deprecated hook name. create_contact -> contact_create in /var/webmail/program/include/rcube_plugin_api.php on line 200 (GET /webmail/?_task=addressbook&_remote=1&_action=list&_source=0&_page=1&_=1292317654238&_unlock=1)


Someone can help me.

Thanks.

Offline diosim

  • Newbie
  • *
  • Posts: 7
Automatic addressbook plugin
« Reply #1 on: December 17, 2010, 04:00:31 AM »
Up Up Up!!

Offline diosim

  • Newbie
  • *
  • Posts: 7
Automatic addressbook plugin
« Reply #2 on: December 20, 2010, 05:12:43 AM »
Up!!
Thanks

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Automatic addressbook plugin
« Reply #3 on: December 20, 2010, 06:50:27 AM »
Update Roundcube to v0.5-RC, use recent plugin version and errors will disappear.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline diosim

  • Newbie
  • *
  • Posts: 7
Automatic addressbook plugin
« Reply #4 on: December 20, 2010, 10:25:06 AM »
I updated roundcube to v0.5-RC, I used automatic addressbook version 3, i didn't find the latest release,
I got the same errors :(

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Automatic addressbook plugin
« Reply #5 on: December 20, 2010, 10:28:05 AM »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline diosim

  • Newbie
  • *
  • Posts: 7
Automatic addressbook plugin
« Reply #6 on: December 20, 2010, 11:13:38 AM »
I did, it's fixe now

Thanks

Best Regards

Offline billstif

  • Jr. Member
  • **
  • Posts: 37
Automatic addressbook plugin
« Reply #7 on: May 10, 2011, 10:47:06 AM »
The latest version of automatic_addressbook again has the deprecated code.  To fix the program, edit automatic_addressbook.php

Replace lines 37-45

Code: [Select]

    public function init()
    {
        $this->add_hook('address_sources', array($this, 'address_sources'));
        $this->add_hook('get_address_book', array($this, 'get_address_book'));
        $this->add_hook('message_sent', array($this, 'register_recipients'));
        $this->add_hook('user_preferences', array($this, 'settings_table'));
        $this->add_hook('save_preferences', array($this, 'save_prefs'));
        $this->add_hook('save_contact', array($this, 'handle_doubles'));
        $this->add_hook('create_contact', array($this, 'handle_doubles'));



with

Code: [Select]

    public function init()
    {
        $this->add_hook('addressbooks_list', array($this, 'address_sources'));
        $this->add_hook('addressbook_get', array($this, 'get_address_book'));
        $this->add_hook('message_sent', array($this, 'register_recipients'));
        $this->add_hook('preferences_list', array($this, 'settings_table'));
        $this->add_hook('preferences_save', array($this, 'save_prefs'));
        $this->add_hook('contact_update', array($this, 'handle_doubles'));
        $this->add_hook('contact_create', array($this, 'handle_doubles'));



As far as I can tell, that is all that is needed to fix the problems.

Offline billstif

  • Jr. Member
  • **
  • Posts: 37
Automatic addressbook plugin
« Reply #8 on: May 27, 2011, 03:42:33 PM »
[IGNORE] It turns out, however, the automatic_addressbook plugin is not working correctly for me. It collects the addresses, but when I edit them, it does not move them, and if I try to manually move them, I get a server error, and the address is deleted. [/IGNORE]

Sorry, Rookie mistake.  When I updated the files, I forgot to modify the config file.  :o
« Last Edit: May 28, 2011, 01:51:52 AM by billstif »

Offline roundcube76

  • Newbie
  • *
  • Posts: 5
Automatic addressbook plugin
« Reply #9 on: June 22, 2011, 06:17:43 AM »
Hi,
i have the same problem, when i edit contact from collected_addressbook its copied in personnal_addressbook -> work fine.
But when i move manualy contact from collected_addressbook to personnal_addressbook i have an error and the contact is deleted.