We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

People/Contacts backup bugs in all.vcf

asked 2014-01-23 00:22:22 +0200

axaq gravatar image

updated 2014-01-23 02:07:15 +0200

MattVogt gravatar image

I imported my contacs from N9 exported All.vcf file. I didn't found the following errors inside the N9 All.vcf file but in the People backup file

/home/nemo/.vault/People/data/all.vcf

Some entries have 2 times the same avatar PHOTO inside one VCARD section. Normaly this 2 commands should count the same nummber of lines:

grep "BEGIN:\|PHOTO" .vault/People/data/all.vcf | grep PHOTO | wc -l
grep "BEGIN:\|PHOTO" .vault/People/data/all.vcf | uniq | grep PHOTO | wc -l

I found also other duplicate lines by running these 2 commands:

cat .vault/People/data/all.vcf | wc -l
cat .vault/People/data/all.vcf | uniq | wc -l

or running

cat .vault/People/data/all.vcf | uniq > .vault/People/data/all.vcf.uniq
diff .vault/People/data/all.vcf .vault/People/data/all.vcf.uniq

The duplicates have different types and are from different VCARD entries, like NOTE, EMAIL, ADR, X-ANNIVERSARY.

I'm missing all the BDAY entries in the exported all.vfc file. I would expect them to be in the all.vcf backup as found inside the N9 file. Are the birthdays included in other backup files inside the .vault directory?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-01-23 01:13:20 +0200

MattVogt gravatar image

There are two different issues here - first, the duplicated avatars. We can receive avatars from multiple sources which a human can recognize as the same image. However, they have different originating sources or URLs, can have different dimensions, and the different sizes or encodings, so the data doesn't match. Programmatically, we can't tell that they are the same image, so they are duplicated.

Secondly, some data is not present in the export - this is because the export is only of data stored primarily on the device. Data that we replicate from an external service (Google, Facebook, etc.) is not included in the export. If your birthday data comes from Facebook for example, it won't be exported.

edit flag offensive delete publish link more

Comments

1

I don't use cloud based plattforms like Google or Facebook.

I added one contact manually first.

After that I imported the contacts from my N9. First send 1 contact over BT as a test and than synced all contacts over BT. But 3 contacts from nearly 200 had been missing. That's why I exported all N9 contacts to vcf files, concatenated all to one file and imported that one to the Jolla.

The People backup file all.vcf contains now 4 contacts with 2 PHOTO avatar images which have exactly the same ENCODING=b;TYPE=JPEG data. The bitmaps/jpegs are exactly the same.

I have just added manually a new TEST contact with a birthday and anniversary entry. I found only the X-ANNIVERSARY line but no birthday in the exported all.vcf. As I wrote, no VCARD entry contains a BDAY line.

The duplicated other lines are from other contacts and I have no idea about any reason for that.

axaq ( 2014-01-23 03:20:16 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-01-23 00:22:22 +0200

Seen: 756 times

Last updated: Jan 23 '14