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)