<?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>_save in lib/Horde/Kolab/XML/contact.php fails on address book import</title> 
  <pubDate>Fri, 10 Apr 2026 14:37:16 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6046</link> 
  <atom:link rel="self" type="application/rss+xml" title="_save in lib/Horde/Kolab/XML/contact.php fails on address book import" href="https://bugs.horde.org/ticket/6046/rss" /> 
  <description>_save in lib/Horde/Kolab/XML/contact.php fails on address book import</description> 
 
   
   
  <item> 
   <title>i am using kolab-2.1 (debian unstable) and horde-webmail-1.1</title> 
   <description>i am using kolab-2.1 (debian unstable) and horde-webmail-1.1rc1



error:

when importing a simple CSV address book (LASTNAME, FIRSTNAME, EMAIL) into turba (using kolab driver), the following error occurs (the given line number is not correct as it refers to the already patched and commented out code):



Notice: Undefined index: full-name in /usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/XML/contact.php on line 395



the error occurs in this code snippet:



&lt;snip&gt;

        foreach ($emails as $email) {

            $email = trim($email);

            if (!empty($email)) {

                $new_email = array(&#039;display-name&#039; =&gt; $object[&#039;name&#039;][&#039;full-name&#039;],

                                   &#039;smtp-address&#039; =&gt; $email);

                $object[&#039;email&#039;][] = $new_email;

            }

        }

&lt;/snap&gt;



reason: 

when using the example &#039;kolab&#039; source in turba&#039;s sources.php the &#039;full-name&#039; key is not an available key in the imported abook object.



solution/workaround:

a patch is attached that might only be regarded as a workaround. probably the &#039;map&#039; array of cfgSources[&#039;kolab&#039;] should be evaluated instead... (which tells you how to generate a person&#039;s &#039;full-name&#039;).



</description> 
   <pubDate>Tue, 25 Dec 2007 20:00:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6046#t40318</link> 
  </item> 
   
  <item> 
   <title>I fail to reproduce this using the following csv file:



&quot;f</title> 
   <description>I fail to reproduce this using the following csv file:



&quot;firstname&quot;,&quot;lastname&quot;,&quot;emails&quot;

&quot;test&quot;,&quot;test&quot;,

&quot;test2&quot;,&quot;test2&quot;,&quot;test@example.org, testauch@example.org&quot;



Maybe the problem has been resolved in CVS already?



Marking as &quot;not a bug&quot; but please reopen with more details if the problem still persists for you.</description> 
   <pubDate>Wed, 26 Mar 2008 06:04:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6046#t44188</link> 
  </item> 
   
  <item> 
   <title>hi gunnar,



&gt; I fail to reproduce this using the following</title> 
   <description>hi gunnar,



&gt; I fail to reproduce this using the following csv file:

&gt;

&gt; &quot;firstname&quot;,&quot;lastname&quot;,&quot;emails&quot;

&gt; &quot;test&quot;,&quot;test&quot;,

&gt; &quot;test2&quot;,&quot;test2&quot;,&quot;test@example.org, testauch@example.org&quot;

&gt;

&gt; Maybe the problem has been resolved in CVS already?

&gt;

&gt; Marking as &quot;not a bug&quot; but please reopen with more details if the 

&gt; problem still persists for you.



the problem still persists on my side (with the same example csv file)... hopefully, i will find some time to provide more details...



mike</description> 
   <pubDate>Tue, 01 Apr 2008 12:39:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6046#t44294</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
