<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>add_source = localsql not working in share mode</title> 
  <pubDate>Fri, 10 Apr 2026 05:02:45 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8285</link> 
  <atom:link rel="self" type="application/rss+xml" title="add_source = localsql not working in share mode" href="https://bugs.horde.org/ticket/8285/rss" /> 
  <description>add_source = localsql not working in share mode</description> 
 
   
   
  <item> 
   <title>When add_source pref is set to localsql, when you try to add</title> 
   <description>When add_source pref is set to localsql, when you try to add a contact from a message you get this error:



Invalid address book: localsql



I think that the correct behavior is to add that contact to the default addressbook.



I attach a patch to modify turba/lib/api.php to achieve that.



</description> 
   <pubDate>Fri, 15 May 2009 10:58:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54177</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t think it&#039;s a good idea to silently add the address t</title> 
   <description>I don&#039;t think it&#039;s a good idea to silently add the address to a different address book than the user intended.</description> 
   <pubDate>Fri, 15 May 2009 14:23:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54182</link> 
  </item> 
   
  <item> 
   <title>Yes, but the user doesn&#039;t choose any addressbook at all, so </title> 
   <description>Yes, but the user doesn&#039;t choose any addressbook at all, so the user should think that the operation is made over the default addressbook.



This error is given when you click in the icon shown near the address when you are viewing a mail from IMP. Yes, you are right and it should be a second step to choose the target addressbook, but if you don&#039;t introduce that second step, the only way to give that functionality is to work over the default addressbook.





</description> 
   <pubDate>Fri, 15 May 2009 15:27:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54185</link> 
  </item> 
   
  <item> 
   <title>One more thing.



The problem is given only in default pref</title> 
   <description>One more thing.



The problem is given only in default pref (when you set value =&gt; &#039;localsql&#039; in prefs.php). If the user enter to options panel and selects a diferent addressbook, that addresbook prevails over the default addressbook, because of this condition:



if (!in_array($import_source, $addressbooks)) { 



I think the patch make more robust the operation, because you can set the add_source pref to an addressbook, but that addressbook cound be deleted in the future. In that case i think it would be more desirable has the operation done over the default addresbook rather than the error.

</description> 
   <pubDate>Fri, 15 May 2009 15:40:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54186</link> 
  </item> 
   
  <item> 
   <title>I&#039;m with Jan on this. Personally, I&#039;d rather not have the ad</title> 
   <description>I&#039;m with Jan on this. Personally, I&#039;d rather not have the address book icon show if no explicit address book is selected in the prefs either by the user or by a default value in prefs.php. The value of &#039;localsql&#039; is not expected to work when localsql is defined as a shared source, so in that case this value should not be used as a default value in prefs.php.</description> 
   <pubDate>Fri, 15 May 2009 16:09:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54189</link> 
  </item> 
   
  <item> 
   <title>Ok, i think you are right. But at least,you should modify th</title> 
   <description>Ok, i think you are right. But at least,you should modify this recomendation from imp/config/prefs.php.dist:



// address book to use for adding addresses

// put $cfgSources array element name in the value field.

// Setting value to localsql would allow you to add contacts to MySQL database

// See turba/config/sources.php for more info

$_prefs[&#039;add_source&#039;] = array(

    &#039;value&#039; =&gt; &#039;&#039;,

//  &#039;value&#039; =&gt; &#039;localsql&#039;,

    &#039;locked&#039; =&gt; false,

    &#039;shared&#039; =&gt; true,

    &#039;type&#039; =&gt; &#039;implicit&#039;

);



At least you should mention that it doesn&#039;t work in turba&#039;s share mode.

</description> 
   <pubDate>Fri, 15 May 2009 16:28:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54190</link> 
  </item> 
   
  <item> 
   <title>It might help to have an example hook that automatically set</title> 
   <description>It might help to have an example hook that automatically sets the pref to the user&#039;s share.</description> 
   <pubDate>Tue, 26 May 2009 11:41:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54306</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/config/hooks.php.dist?rt=horde&amp;r1=1.3.2.6&amp;r2=1.3.2.7&amp;ty=u
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&amp;r1=1.699.2.393&amp;r2=1.699.2.394&amp;ty=u</description> 
   <pubDate>Thu, 04 Jun 2009 18:43:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54424</link> 
  </item> 
   
  <item> 
   <title>An example hook has been added to imp to automatically set t</title> 
   <description>An example hook has been added to imp to automatically set this preference, but will only work if using Horde 3.3.5 (our current CVS code) or greater due to an issue that was just fixed with pref hooks.</description> 
   <pubDate>Thu, 04 Jun 2009 19:03:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8285#t54425</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
