[Tickets #12717] VCard import - unmapped email with TYPE tag

noreply at bugs.horde.org noreply at bugs.horde.org
Sat Sep 28 10:14:21 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12717
------------------------------------------------------------------------------
  Ticket             | 12717
  Created By         | cybert at freenet.de
  Summary            | VCard import - unmapped email with TYPE tag
  Queue              | Turba
  Version            | 4.1.2
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


cybert at freenet.de (2013-09-28 10:14) wrote:

A vcard file created with PHP iAddressbook contains lines like:
EMAIL;TYPE=HOME:name at provider1.com
EMAIL;TYPE=HOME:name at provider2.com
EMAIL;TYPE=WORK:name at 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





More information about the bugs mailing list