Om2009’s telephony application is Paroli, and it uses it’s own contacts database. Ingvaldur Sigurjonsson made a script to import VCF contacts but it wouldn’t work on most of my contacts, which were imported via Bluetooth about two years ago.
Since some had CRLF and others had LF as line terminators (ok, some VCF contacts were hand-made, as it’s a very nice contacts backup format which you can grep, etc…), I hacked the script to handle both cases, but mostly, to handle the case when the phone_info list had only one element, which the script wouldn’t take in account resuling in about 150 contacts lost from 270.
It also doesn’t take in account PREFerred phone numbers, so I removed then with the following command:
sed -i -e 's,;PREF,,' *.vcf
As it is likely helpful to others, here it is under a title which will surely be picked up by search engines for this issue: vcf2paroli
Do you enjoy the results?
There two things I didn’t like:
- it imported multiple times the same contact if it has more than one phone number
- clicking on the die produced the expected result but with a bug: some buttons are hidden (so I registered bug #180)
Have you tried it with utf-8 contacts like some chineese entries by any chance?
Those ‘ó’ that you see in António are there because they were in UTF-8 so maybe it’ll work for you 🙂
Wow, nice, great job! It’d be nice to integrate this to Paroli at some stage, with a GUI.
I don’t think it would make much sense to incorporate this.
Yes, paroli-people should be able to import contacts from VCF but, I hope, not something derived from this script.
It has a very naïve parsing of VCF data, it’s enough to do the job, but barely.
If I get to know how paroli-people’s contact db is accessed/modified, then I’ll consider doing a script with proper VCF parsing and merging, etc…