EContact: Define defaults for attributes without TYPE
Evolution downloads over CardDAV:
BEGIN:VCARD
VERSION:4.0
PRODID:+//IDN bitfire.at//DAVx5/2.5.4-ose ez-vcard/0.10.5
UID:c3d598d8-bfd6-4acd-9ba5-57893ab6bc79
FN:Fictional
N:;Fictional;;;
ADR;TYPE=home;LABEL=A1:;;A1;;;;
ADR;LABEL=A2:;;A2;;;;
REV:20190814T123525Z
END:VCARD
Evolution displays from this contact as address, both in the Contact Preview and in the Contact Editor only A1. The A2 address is not displayed.
While Evoution supports only vCard 3.0, ADR is used in vCard 3.0 and 4.0 in the same way, except that vCard 4.0 introduces the LABEL parameter to ADR, while in 3.0 LABEL is a separate property. The LABEL does not seem to make a difference here. https://tools.ietf.org/html/rfc2426#section-3.2.1 says for ADR: “The type can include the type parameter "TYPE" to specify the delivery address type.“. Thus the TYPE parameter is optional.
• Display ADR fields in the Contact preview and editor, that have no TYPE parameter.
Edited by Milan Crha