6.0.0-beta1
7/6/25

[#12717] VCard import - unmapped email with TYPE tag
Summary VCard import - unmapped email with TYPE tag
Queue Turba
Queue Version 4.1.2
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester cybert (at) freenet (dot) de
Created 09/28/2013 (4299 days ago)
Due 09/28/2013 (4299 days ago)
Updated 09/29/2013 (4298 days ago)
Assigned
Resolved 09/29/2013 (4298 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
09/29/2013 04:46:24 PM Michael Rubinsky Comment #2
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
This is what the mapping array is for in turba's backends.php file.
09/28/2013 10:14:20 AM cybert (at) freenet (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ VCard import - unmapped email with TYPE tag
Due ⇒ 09/28/2013
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ Yes
Reply to this comment
A vcard file created with PHP iAddressbook contains lines like:
EMAIL;TYPE=HOME:name@provider1.com
EMAIL;TYPE=HOME:name@provider2.com
EMAIL;TYPE=WORK:name@company.com
The type-tagged email addresses are mapped internally to the hash 
fields 'HomeEmail' and 'WorkEmail' but not to 'email'  which is used 
for display.

If an exceptional duplicate of the same type exists (as shown above) 
the field 'email' is set however. As a fix i replaced the line #2278 
in turba/lib/driver.php:
                if (!$email_set &&
with
                 if (

Then the first 'TYPE' tagged email is set to 'email' to be displayed.
Of course i would like to see all email-addresses, but that's another 
story ...

cybert

Saved Queries