Roundcube Community Forum

 

Automatically created addresses not working

Started by mtj1310, September 30, 2011, 08:18:07 AM

Previous topic - Next topic

mtj1310

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

Rumbanana

I'm having the same issue, i think that is an issue with RoundCube 0.6 while the plugin was developed for 0.5x. :/

mtj1310

Hi.
Yes, you were right. There is an updated plugin, and now everything is working.
Thanks.

kionez

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.