Duplicating address when sync to CardDAV-Server
I have my own CardDAV-Server (Synology Contacts), a Samsung S8 (with DAVx5) and EMClient. I tried the following:
- i exported all contacts from EMClient and Synology as vCard-files
- i compared every contact (i reduced the number of contacts)
- i corrected all error (home-> HOME, work->WORK)
- i deleted all extra attributes (like TYPE=x-…, …)
- i deleted all contacts from every device
- i imported all contacts from a single vCard-file … then synced all devices
Result: all was ok
Then i edited one contact in EMClient. Result: all was ok, the changes synced in all devices
Then i edited in Synology Contacts. Result: all was ok
But now i edited one contact in my Samsung S8. Result: in Synology Contacts the data is ok (i exported the vCard), but the attribute TYPE of some addresses were written in lowercase like this: ADR;TYPE=home and an additional line with LABEL;TYPE=home:<address> was added. In EMClient i got two addresses. One with ADR;TYPE=home and the same Address with ADR;TYPE=TYPE.
So i gues DAVx5 is changing the attribute of TYPE in lowercase, adds an additonal line (LABEL;…) and EMClient adds a new ADR-line to the vCard, because it cannot read the line with TYPE=home and the additional line LABEL (which could be ignored)?
After every snc i get more and more addresses like described above. So who is doing wrong? DAVx5 (the additional LABEL is allowed, but lowercase for TYPE=home or TYPE=work is that ok?) or EMCient?
vCard in CardDAV-Server before Sync:
BEGIN:VCARD VERSION:3.0 PRODID:+//IDN bitfire.at//DAVx5/126.96.36.199-gplay ez-vcard/0.11.0 UID:fa9fbe9a-81fe-4a10-b048-b2476686f472 ADR;TYPE=HOME:;;street 1;town;region;plz;Deutschland BDAY:1960-01-01 CATEGORIES:Bekannte EMAIL;TYPE=HOME,PREF:email@example.com FN:Birgit Gxxxxx N:Gxxxxx;Bxxxxx;;; REV:2020-07-28T14:18:39Z SORT-STRING:Bxxxxx Gxxxxx TEL;TYPE=HOME:+49 600000 00000 TEL;TYPE=CELL:+49 160 00000000 END:VCARD
vCard in CardDAV-Server after Sync:
BEGIN:VCARD VERSION:3.0 PRODID:+//IDN bitfire.at//DAVx5/188.8.131.52-gplay ez-vcard/0.11.0 UID:fa9fbe9a-81fe-4a10-b048-b2476686f472 ADR;TYPE=home:;;street 1;town;region;plz;Deutschland BDAY:1960-01-01 CATEGORIES:Bekannte EMAIL;TYPE=home,pref:firstname.lastname@example.org FN:Bxxxxx Gxxxxx --->> LABEL;TYPE=home::;;street 1\ntown\nregion\nplz\nDEUTSCHLAND N:Gxxxxx;Bxxxxx;;; REV:2020-07-28T14:18:39Z SORT-STRING:Bxxxxx Gxxxxx TEL;TYPE=home:+49 600000 00000 TEL;TYPE=cell:+49 160 00000000 END:VCARD
Thanks, I could reproduce the problem. For reference, also linking to: https://forum.emclient.com/t/contacts-wont-display-address-in-column-when-vcard-uses-lower-case-type/45285
As I understand it, it’s an eM Client problem, because it treats
LABELas a separate address. Please follow up here: https://forum.emclient.com/t/contacts-wont-display-address-in-column-when-vcard-uses-lower-case-type/45285/7