text-vcard
text-vcard copied to clipboard
Question: Support for CATEGORIES
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
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.