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 |
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
Taken from Thomas Jarosch
Taken from Gunnar Wrobel
State ⇒ Resolved
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
Assigned to Thomas Jarosch
Assigned to Gunnar Wrobel
Queue ⇒ Kolab
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
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?