Import VCF contacts into Paroli

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?

Successfully imported 270 contacts!
Successfully imported 270 contacts!

There two things I didn’t like:

  1. it imported multiple times the same contact if it has more than one phone number
  2. clicking on the die produced the expected result but with a bug: some buttons are hidden (so I registered bug #180)
Oops! They don't fit at all! #180
Oops! They don't fit at all! #180

4 Replies to “Import VCF contacts into Paroli”

  1. Have you tried it with utf-8 contacts like some chineese entries by any chance?

  2. Those ‘ó’ that you see in António are there because they were in UTF-8 so maybe it’ll work for you 🙂

  3. 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…

Comments are closed.