Author Topic: Automatically created addresses not working  (Read 5910 times)

Offline mtj1310

  • Newbie
  • *
  • Posts: 5
Automatically created addresses not working
« on: September 30, 2011, 08:18:07 AM »
Hi there
I've installed Automatic address book plugin, but it's not working.
In Preferences- Address Book, the Automatically Collected section is not appearing. I have checked "Use automatic address book" under Preferences- Composing Messages.
The address book "Automatically Collected" is appearing in the address book Groups, but no addresses are collected.
I'm running Roundcube version 0.6 and the latest plugin for Automatic Addressbook on a QNAP TS-119.
Any help would be appreciated.
Thanks, Michael
« Last Edit: September 30, 2011, 09:00:56 AM by mtj1310 »

Offline Rumbanana

  • Newbie
  • *
  • Posts: 1
Automatically created addresses not working
« Reply #1 on: October 05, 2011, 03:51:47 PM »
I'm having the same issue, i think that is an issue with RoundCube 0.6 while the plugin was developed for 0.5x. :/

Offline mtj1310

  • Newbie
  • *
  • Posts: 5
Automatically created addresses not working
« Reply #2 on: October 11, 2011, 05:35:39 AM »
Hi.
Yes, you were right. There is an updated plugin, and now everything is working.
Thanks.

Offline kionez

  • Newbie
  • *
  • Posts: 2
Automatically created addresses not working
« Reply #3 on: October 13, 2011, 03:15:28 AM »
I have a problem with latest automatic_addressbook and roundcube 0.6, when "use_auto_abook" is set to false (because only someone wants this feature) and automatic_addressbook is not enabled (by default), the autocomplete of address when composing a new email fails with "server error".

I fixed this with a small patch, but I'm not sure that's correct (it simply check the "use_auto_abook" value before using collected address for autocompletion):

--- ../../plugins.orig/automatic_addressbook/automatic_addressbook.php 2011-10-09 11:28:17.000000000 +0200
+++ automatic_addressbook.php   2011-10-12 14:58:33.000000000 +0200
@@ -46,12 +46,15 @@

         // use this address book for autocompletion queries
         $config = rcmail::get_instance()->config;
-        $sources = $config->get('autocomplete_addressbooks', array('sql'));
-
-        if (!in_array($this->abook_id, $sources)) {
-            $sources[] = $this->abook_id;
-            $config->set('autocomplete_addressbooks', $sources);
-        }
+       if ($config->get('use_auto_abook',true)) {
+
+               $sources = $config->get('autocomplete_addressbooks', array('sql'));
+
+               if (!in_array($this->abook_id, $sources)) {
+                   $sources[] = $this->abook_id;
+                   $config->set('autocomplete_addressbooks', $sources);
+               }
+       }
     }

     public function address_sources($p)



I try to report it on author's Redmine, but I can't register\login.