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.