vCard backup with changed telefone type and duplicates
I was wondering about duplicate phone numbers of some contacts in Messaging->New/Answer->Change type
list. The People->Contact details
didn't showed the duplicates but People->Contact details->Edit
.
I looked into the People backup file .vault/People/data/all.vcf
and found duplicates like
TEL;TYPE=CELL,VOICE:123456
TEL;TYPE=VOICE,CELL:123456
or
TEL;TYPE=CELL,VOICE,HOME:987654
TEL;TYPE=VOICE,CELL,HOME:987654
I'm not shure how this happened but could reproduce the following issue. I imported this test vCard:
BEGIN:VCARD
VERSION:3.0
N:Aaa;Import;;;
TEL;TYPE=HOME,CELL,VOICE:1234
TEL;TYPE=WORK,CELL,VOICE:5678
TEL;TYPE=WORK,VOICE:1357
TEL;TYPE=HOME,VOICE:2468
END:VCARD
A new export with vcardconverter -e file.vcf
contained the new entry with some additional lines. The telephone lines had not changed.
After editing the contact (adding a nick name) the 4 telephone lines changed to
TEL;TYPE=CELL,HOME:1234
TEL;TYPE=CELL,HOME:5678
TEL;TYPE=ISDN,WORK:1357
TEL;TYPE=ISDN,HOME:2468
First problem: The home and work mobile/cell tags are lost.
Second problem: Landline types have changed from VOICE to ISDN. If you import the same vCard again you get the duplicates:
TEL;TYPE=CELL,HOME:1234
TEL;TYPE=CELL,HOME:5678
TEL;TYPE=ISDN,WORK:1357
TEL;TYPE=ISDN,HOME:2468
TEL;TYPE=VOICE,CELL,HOME:1234
TEL;TYPE=VOICE,CELL,WORK:5678
TEL;TYPE=VOICE,WORK:1357
TEL;TYPE=VOICE,HOME:2468
The duplicates are not shown in the contact detail view but when editing the contact or trying to change type in Messaging app as written above.
If you now edit the contact and import the vCard again you get more duplicate phone entries.