6.0.0-alpha14
7/2/25

[#8358] turba with kolab-backend loses e-mail address when adding contact from imp/dimp
Summary turba with kolab-backend loses e-mail address when adding contact from imp/dimp
Queue Kolab
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester m.rolke (at) linux-ag (dot) com
Created 06/18/2009 (5858 days ago)
Due
Updated 10/15/2012 (4643 days ago)
Assigned 06/18/2009 (5858 days ago)
Resolved 10/10/2012 (4648 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/15/2012 08:45:09 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (develop):

commit 31c0961b8fe155ae1d1b16777eab87492e970378
Author: Jan Schneider <jan@horde.org>
Date:   Wed Oct 10 15:09:48 2012 +0200

     Special handling to map 'email' to 'emails' attributes (Bug #8358).

  turba/docs/CHANGES |    2 ++
  turba/lib/Api.php  |    3 +++
  turba/package.xml  |    2 ++
  3 files changed, 7 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/31c0961b8fe155ae1d1b16777eab87492e970378
10/10/2012 01:37:26 PM Thomas Jarosch Comment #3 Reply to this comment
Fix confirmed, thanks.

10/10/2012 01:17:10 PM Jan Schneider Assigned to Jan Schneider
Taken from Thomas Jarosch
Taken from Gunnar Wrobel
State ⇒ Resolved
 
10/10/2012 01:17:05 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 31c0961b8fe155ae1d1b16777eab87492e970378
Author: Jan Schneider <jan@horde.org>
Date:   Wed Oct 10 15:09:48 2012 +0200

     Special handling to map 'email' to 'emails' attributes (Bug #8358).

  turba/docs/CHANGES |    2 ++
  turba/lib/Api.php  |    3 +++
  turba/package.xml  |    2 ++
  3 files changed, 7 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/31c0961b8fe155ae1d1b16777eab87492e970378
06/18/2009 05:38:29 PM Jan Schneider State ⇒ Assigned
Assigned to Thomas Jarosch
Assigned to Gunnar Wrobel
 
06/18/2009 04:52:11 PM Chuck Hagenbuch Version ⇒
Queue ⇒ Kolab
 
06/18/2009 04:44:43 PM m (dot) rolke (at) linux-ag (dot) com Comment #1
Milestone ⇒
State ⇒ Unconfirmed
Patch ⇒ No
Queue ⇒ Turba
Summary ⇒ turba with kolab-backend loses e-mail address when adding contact from imp/dimp
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
Hi there,



i have turba configured with kolab2 as the storage backend.



Creating a contact in turba itself works flawless.

But when i try to import the sender of an e-mail to my default 
addressbook (kolab backend) it fails.

Although the contact will be created, turba throws away the e-mail attribute.



The problem, i think, is that imp tries to add a contact with a single 
e-mail address ($attribute['email']).

Turba in contrast expects $attribute['emails'] (plural) and throws 
away the former.



Because i think this is a specialty for kolab, this should be fixed in 
the kolab driver itself:



So, i suggest adding something like the followin to the _add function 
in turba/lib/Driver/kolab.php



if (isset($attributes['email'])) {

                 $attributes['emails'] = $attributes['email'];

                 unset($attributes['email']);

         }



Thoughts?

Saved Queries