No description
Find a file
2020-02-13 11:25:25 +00:00
contacts-importer.sh Updated the README.md and added features mimetype checking. And auto selecting the evolution system database. 2020-02-13 12:09:55 +01:00
LICENSE Add LICENSE 2020-02-10 16:21:47 +00:00
README.md k 2020-02-13 11:24:52 +00:00

diy contacts importer

This repo is just a place to dump experimental scripts to import VCF files.

The use case for it is:

  • To allow a Librem 5 user that is migrating from Android to move his contacts as a vcf file to the Librem 5 and import

Why is this necessary

Because the application we use to manage contacts, GNOME Contacts does not yet have the feature to import contacts from a file. You can only type contacts mannualy or import them from Nextcloud.

This issue is common to all projects that used Evolution (the database backend of gnome contacts) to manage contacts: Openmoko, Uuntu Touch

Dependencies:

  • syncevolution
  • sed
  • awk

logic: This script breaks down a vcf file with multiple contacts into multiple files. One vcard file per contact entry and imports them one by one.

The reason for this is that importing all the contacts at once from one single file with syncevolution is error prone.

Current State: if you run the command ./contacts-importer.sh [CONTACTS-FILE.vcf] it will import contacts to GNOME Contacts.

problems: See the issues list.

This is only a quick and dirty bash script to do this task.

The proper way to do this: "having a easy way to import vcard files to the Librem 5/PureOS and GNOME, with GNOME Contacts and Evolution Data Server as a backend"

Would be to:

  1. Someone writing a python/gtk application to do this.
  2. (And even better) Someone submiting a patch to GNOME-Contacts for that application to support importing vcard files.

You are more than free to go for it.

References: