Hello Patrick,

On 11.04.2014, at 12:18, Patrick Ohly <patrick.o...@intel.com> wrote:

> Google CardDAV and iOS/OS X use group tags to represent custom labels in
> vCards. Attached is an example. Note that the Google vCard format used
> by CardDAV is not the same as the one used by Gmail's export feature.
> The example is from CardDAV.
> 
> I am trying to understand how I can support that using libsynthesis.
> 
> The doc mentions:
> 
> "groupfield"
> [...]
> Is there an example using this feature?

I implemented that feature back at Synthesis in 2010 for Beat's Android client, 
and what is shown in the docs (the TITLE/ORG case) is in fact taken from that 
client's config.

> Is the following field list and profile correct?
> 
> Field list:
> 
>      <field name="TITLE" array="yes" type="string"/>
>      <field name="ORG_NAME" array="yes" type="string"/>
>      <field name="ORG_DIVISION" array="yes" type="string"/>
>      <field name="ORG_OFFICE" tarray="yes" ype="string"/>
>      <field name="ORG_TEAM" array="yes" type="string"/>
>      <field name="ROLE" array="yes"  type="string"/>
>      <field name="GROUP-TAG-TITLE-ORG" array="yes" type="string"/>
> 
> Profile:
> 
>        <property name="TITLE" grouptag="GROUP-TAG-TITLE-ORG">
>          <value field="TITLE"/>
>        </property>
>        <property name="ORG" values="4" grouptag="GROUP-TAG-TITLE-ORG">
>          <value index="0" field="ORG_NAME"/>
>          <value index="1" field="ORG_DIVISION"/>
>          <value index="2" field="ORG_OFFICE"/>
>          <value index="3" field="ORG_TEAM"/>
>        </property>
> 
> 
> My understanding is that parsing the example from the documentation will lead 
> to:
> ORG = [ "myOwnCompany", "myEmployer" ]
> TITLE = [ "boss", "employee" ]
> GROUP-TAG-TITLE-ORG = [ "A", "B" ]

Yes, that's excactly what is supposed to happen.

> The challenge will be to convert between
>        item6.IMPP;X-SERVICE-TYPE=AIM:aim:aim
>        item6.X-ABLabel:Other
> and
>        X-AIM:aim
> 
> Custom labels will also be "fun", if that's what Evolution decides to
> use (currently it is unsupported).


As always, vCard details are fun, and X-stuff even more so ;-)

Best Regards,

Lukas

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to