[Vobject] Custom Labels
Adam Tauno Williams
awilliam at opengroupware.us
Tue Nov 24 15:25:37 CST 2009
On Tue, 2009-11-24 at 12:07 -0700, Dustin Davis wrote:
> Below is an example contact in Mac's address book:
> BEGIN:VCARD
> VERSION:3.0
> N:Doe;John;;;
> FN:John Doe
> ORG:MyCompany LLC;
> EMAIL;type=INTERNET;type=WORK;type=pref:john at sample.com
> TEL;type=WORK;type=pref:555-1234
> TEL;type=CELL:555-4321
> item1.ADR;type=WORK;type=pref:;;555 John Doe Cir;Beverly Hills;CA;90210;US
> item1.X-ABADR:us
> NOTE:Sample contact for testing.
> BDAY;value=date:1998-12-31
> X-AIM;type=WORK;type=pref:johndoe
> item2.X-JABBER;type=pref:john.doe
> item2.X-ABLabel:Facebook
> item3.X-JABBER:john.doe at gmail.com
> item3.X-ABLabel:Google Talk
> X-ABUID:1B7E05B4-69BD-4725-B464-88346C67AFB0\:ABPerson
> END:VCARD
> Notice there are some records spanned across multiple lines. Can vobject
> replicate this? I would like to be able to implement custom labels like so:
Is that legal in the vCard spec?
> item(n).X-JABBER:jabber at jabber.com
> item(n).X-ABLABEL:MyCompany's Jabber
> Is this currently possible?
I don't see why there is any reason to do that. Most clients and
parsers are probably going to vomit.
Just do -
X-JABBER;X-ABLabel=Google Talk:john.doe at gmail.com
That is legal.
--
OpenGroupware developer: awilliam at whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>
More information about the VObject
mailing list