From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg Subject: Basic vcard-to-org-contacts converter Date: Mon, 24 Mar 2014 19:25:01 +0000 Message-ID: <8761n39z76.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSAUq-0001QC-CW for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 15:25:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSAUl-0004I7-K4 for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 15:25:20 -0400 Received: from mx02a.posteo.de ([89.146.194.168]:49548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSAUl-0004Hg-E8 for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 15:25:15 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTP id 3A29B25C00BD for ; Mon, 24 Mar 2014 19:25:12 +0000 (UTC) Received: from posteo.de ([10.125.125.134]) by localhost (amavis1.posteo.de [10.125.125.165]) (amavisd-new, port 10026) with ESMTP id mha3ExiSPrrY for ; Mon, 24 Mar 2014 20:25:02 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by mail.posteo.de (Postfix) with ESMTPSA id 366552002C484 for ; Mon, 24 Mar 2014 20:25:02 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi list! I decided to give org-contacts a try. Since there doesn't seem to be a facility for importing contacts in vcard format, I wrote a little Python script for that. Perhaps someone on this list finds it useful. https://gist.github.com/tmalsburg/9747104 The script uses the Python package vobject for parsing vcard files. On Debian-like systems this package is available as python-vobject. I tested the script with contacts exported from Apple's iCloud service and that worked well. However, the vcard format is somewhat messy and I don't know what happens with vcard files generated in other contact managers. Use at your own risk. If there's interest, I might migrate the script to a proper Github repository and develop it further, i.e., merge your pull-requests ;-) Titus