[Tickets #8366] vCard Parsing Errors with Property Groups
bugs at horde.org
bugs at horde.org
Mon Jun 22 19:29:52 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8366
------------------------------------------------------------------------------
Ticket | 8366
Created By | Ben Klang <ben at alkaloid.net>
Summary | vCard Parsing Errors with Property Groups
Queue | Horde Framework Packages
Version | FRAMEWORK_3
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
Ben Klang <ben at alkaloid.net> (2009-06-22 15:29) wrote:
While attempting to import contacts exported from Apple's Address Book
I found a limitation of the vCard processing code. vCard allows for
single attributes to have multiple values: for example several email
addresses or multiple street addresses. This mechanism may be
accomplished using vCard Property Groups. The way to signify this is
to use a prefix on the field name such as "item1.", followed by
"item2.", etc. Horde Framework and Turba both expect all fields to be
only named for their field (such as "ADR" for address) and so miss
these fields with a prefix. The symptom is that fields with a prefix
get ignored.
Here is an example vCard snippet:
item1.ADR;type=HOME;type=pref:;;Attn\: Sharon Braunstein\nP.O. Box
5396;Atlanta;GA;31107;
I found at least two places where this needs to be modified:
framework/iCalendar/iCalendar.php
turba/lib/Driver.php
From what I can tell Turba will not be able to store multiple
attribute values, but we should be able to at least parse one of them
to store. In this case the item1 address had a type of "HOME" and the
item2 had a type of "WORK" which can map safely into Turba.
More information about the bugs
mailing list