Internet-Draft | vCard JSContact Extensions | April 2023 |
Stepanek & Loffredo | Expires 21 October 2023 | [Page] |
This document defines a set of new properties for vCard and extends the use of existing ones. Their primary purpose is to align the same set of features between the JSContact and vCard formats, but the new definitions also aim to be useful within just the vCard format. This document updates [RFC6350].¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 21 October 2023.¶
Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The JSContact [I-D.ietf-calext-jscontact] format aims to be an alternative to the vCard [RFC6350] format for representation of contact and address book data. As such, it introduces new semantics that are not covered in the current definition of vCard and its various extensions. Converting contact data between the two formats is defined in [I-D.ietf-calext-jscontact-vcard] with the goal of not loosing any semantics during conversion. In order to do so, this document defines a new set of properties for vCard and extends existing definitions.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This property is defined by the following notation:¶
contact-channel-pref = "CONTACT-CHANNEL-PREF" *(";" contact-channel-pref-param ) ":" contact-channel-pref-value contact-channel-pref-param = type-param / pref-param / any-param contact-channel-pref-value = "ADR" / "EMAIL" / "IMPP" / "TEL" / x-name¶
CONTACT-CHANNEL-PREF;TYPE=work;PREF=1:EMAIL CONTACT-CHANNEL-PREF;TYPE=work;PREF=2:TEL CONTACT-CHANNEL-PREF;TYPE=home:TEL¶
This property is defined by the following notation:¶
created = "CREATED" createdparam ":" timestamp createdparam = *( ; ; The following are OPTIONAL, ; but MUST NOT occur more than once. ; (";" "VALUE" "=" "timestamp") / ; ; The following are OPTIONAL, ; and MAY occur more than once. ; (";" any-param) ; )¶
CREATED:20220705093412Z CREATED;VALUE=TIMESTAMP:20211022T140000-05¶
This property defines the grammatical gender that the contact prefers to be addressed by or referred at. Multiple occurrences of this property MUST be distinguished by the LANG parameter.¶
Many human languages use grammatical genders in salutations and other language constructs. For example, the German language typically distinguishes between the grammatical gender of the recipient in salutations. The allowed values for this property aim to cover grammatical genders for the majority of human languages. This specification registers an initial list (Table 3) of allowed values at the IANA vCard Property Values Registry, but this may be extended later.¶
This property is defined by the following notation:¶
gram-gender = "GRAMMATICAL-GENDER" gram-gender-param ":" gram-gender-value gram-gender-param = *( ; ; The following are OPTIONAL, ; but MUST NOT occur more than once. ; (";" language-param) / ; ; The following are OPTIONAL, ; and MAY occur more than once. ; (";" any-param) ; ) gram-gender-value = "animate" / "common" / "feminine" / "inanimate" / "masculine" / "neuter" / iana-token / x-name¶
GRAMMATICAL-GENDER:neuter¶
TEXT
shall be assumed to be written for this vCard.
If a vCard property includes the LANG
parameter, then the
parameter value has higher precedence than the LOCALE
property value.¶
This property is defined by the following notation:¶
locale = "LOCALE" any-param ":" Language-Tag ; Language-Tag is defined in RFC6350, Section 4.¶
LOCALE:de-AT¶
This property is defined by the following notation:¶
pronouns = "PRONOUNS" pronouns-param ":" text pronouns-param = *( ; ; The following are OPTIONAL, ; but MUST NOT occur more than once. ; (";" language-param) / (";" pref-param) / (";" type-param) / (";" altid-param) / ; ; The following are OPTIONAL, ; and MAY occur more than once. ; (";" any-param) ; )¶
PRONOUNS;LANG=en;PREF=1:xe/xir PRONOUNS;LANG=en;PREF=2:they/them¶
This parameter MAY be set on any property to define the point in time when the property was created. The value MUST be a valid TIMESTAMP value as defined in Section 4.3.5 of [RFC6350]. Generally, updating a property value SHOULD NOT change the creation timestamp.¶
created-param = "CREATED" "=" param-value ; ; a valid TIMESTAMP of Section 4.3.5 of [RFC6350]¶
NOTE;CREATED=20221122T151823Z:This is some note.¶
This property parameter MAY be specified on any property when the value is derived from some other property or properties. When present with a value of true
, clients MUST NOT update the property.¶
For an example, an implementation may derive the value of the FN property from the name components of the N property. It indicates this by setting the DERIVED parameter on the FN property to true
.¶
derived-param = "DERIVED" "=" ("true" / "false") ; Default is false¶
N:;John;Quinlan;Mr.; FN;DERIVED=TRUE:Mr. John Quinlan¶
The RANKS parameter on an N property assigns a rank among the same-typed name components of an N property value. Some cultures assign ranks to name components, such as a first and a second surname, or people might prefer to go by their second given name. But the N property value does not allow inferring a culturally or otherwise significant rank from the order in which same-typed name components are stored in it.¶
The parameter value is structurally equivalent to the multivalued N property value: ranks of different name component types are separated by semicolon, ranks among the same name component types are separated by comma. The rank is an integer number larger than or equal to 1 and indicates the first or nth rank. Its location within the RANKS parameter value ranks the name component value at that same position within the N property value. An empty or absent rank indicates that the rank of its related name component value is undefined. If the RANKS parameter is set, its value MUST NOT be the empty string.¶
NONZERO-DIGIT = %x31-39 ; "1" to "9" ranks-param = ranks-component 4(";" ranks-component) ranks-component = rank *("," rank) rank = (NONZERO-DIGIT *DIGIT) / ""¶
This example assigns ranks to two surnames. The culturally first surname is Rodriguez but it appears at the second position in the N property. Accordingly the RANKS parameter assigns rank 1 to the second entry in the surname name component. It also assigns rank 2 to the first entry in the same name component. It does not assign any rank to the personal name or any other name components.¶
N;RANKS="2,1":Gómez,Rodriguez;Pablo;;;¶
This example assigns ranks to both the surname and personal name components. The writer "Dame Mary Barbara Hamilton Cartland" published most of her work under the "Barbara Cartland" and this is reflected in the ranks. The RANKS parameter assigns rank 1 to the second entry in the surname name component. It leaves the rank of "Hamilton" undefined. Similarly, it assigns rank 1 to the second entry in the personal name component and leaves "Mary" unranked. There is no rank assigned to the honorific prefix "Dame".¶
N;RANKS=",1;,1":Hamilton,Cartland;Mary,Barbara;;Dame;¶
This parameter uniquely identifies a property among all of its siblings with the same name within a vCard. A valid PROP-ID value must be of 1 and a maximum of 255 octets in size, and it MUST only contain the ASCII alphanumeric characters (A-Za-z0-9
), hyphen (-
), and underscore (_
). The identifier only has the purpose to uniquely identify siblings, its value has no other meaning. If an application makes use of PROP-ID it SHOULD assign a unique identifier to each sibling property of the same name within their embedding component. The same identifier MAY be used for properties of a different name, and it MAY also be assigned to a same-named property that is not a sibling.¶
Resolving duplicate identifier conflicts is specific to the application. Similarly, handling properties where some but not all siblings have a PROP-ID is assigned, is application-specific.¶
prop-id-param = "PROP-ID" "=" 1*255(ALPHA / DIGIT / "-"/ "_")¶
PHOTO;PROP-ID=p827:data:image/jpeg;base64,MIICajCCAdOgAwIBAg <...remainder of base64-encoded data...>¶
This parameter MAY be specified on a IMPP or SOCIALPROFILE property to name the online service associated with that property value. Its value is case-sensitive, its letter cases MUST be preserved.¶
Several vCard address book implementations currently use an experimental X-SERVICE-TYPE parameter. This specification provides an IANA-registered parameter for the same purpose.¶
service-type-param = "SERVICE-TYPE" "=" param-value¶
SOCIALPROFILE;SERVICE-TYPE=Mastodon:https://example.com/@foo¶
This specification extends the vCard Format Specification. The same security considerations as outlined in Section 9 of [RFC6350] apply.¶
IANA is requested to add the following entries to the "vCard Properties" registry, defined in Section 10.3.1. of [RFC6350].¶
Namespace | Property | Reference |
---|---|---|
CONTACT-CHANNEL-PREF | This document, Section 2.1 | |
CREATED | This document, Section 2.2 | |
GRAMMATICAL-GENDER | This document, Section 2.3 | |
LOCALE | This document, Section 2.4 | |
PRONOUNS | This document, Section 2.5 | |
SOCIALPROFILE | This document, Section 2.6 |
IANA is requested to add the following entries to the "vCard Parameters" registry, defined in Section 10.3.2. of [RFC6350].¶
Namespace | Parameter | Reference |
---|---|---|
AUTHOR | This document, Section 3.1 | |
AUTHOR-NAME | This document, Section 3.2 | |
CREATED | This document, Section 3.3 | |
DERIVED | This document, Section 3.4 | |
PROP-ID | This document, Section 3.6 | |
RANKS | This document, Section 3.5 | |
SERVICE-TYPE | This document, Section 3.7 |
IANA is requested to add the following entries to the "vCard Property Values" registry, defined in Section 10.3.4. of [RFC6350].¶
Property | Value | Reference |
---|---|---|
GRAMMATICAL-GENDER | animate | This document, Section 2.3 |
GRAMMATICAL-GENDER | common | This document, Section 2.3 |
GRAMMATICAL-GENDER | feminine | This document, Section 2.3 |
GRAMMATICAL-GENDER | inanimate | This document, Section 2.3 |
GRAMMATICAL-GENDER | masculine | This document, Section 2.3 |
GRAMMATICAL-GENDER | neuter | This document, Section 2.3 |