ranguard / text-vcard

Perl package to edit and create vCard(s) (RFC 2426)
22 stars 15 forks source link

Question: Support for CATEGORIES #63

Open michaelof opened 3 years ago

michaelof commented 3 years ago

Maybe I've missed it, but on meta:.cpan I haven't found support for CATEGORIES node: https://tools.ietf.org/html/rfc6350#section-6.7.1 Not implemented now or really RFTM? :-) Would be cool if existing, as e.g. nextcloud offers this as a perfect way to group contacts.

Michael

michaelof commented 3 years ago

Found out that my $catnode = $vcard->add_node( { 'node_type' => 'categories', } ); works, and that my $cats = $vcard->get( { 'node_type' => 'categories' } ); $cats->[0]->value(["catA", "catB"]); adds the "categories", but not RFC compliant: Must be COMMA as separator. Is a ";" as separator.