View source for Import Vcf Contacts
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Template used on this page:
Return to Import Vcf Contacts.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Template used on this page:
Return to Import Vcf Contacts.
Neo FreeRunner uses Evolution data server (eds) to save contacts. However, the specific version used differs from what is probably used on your desktop (if you have Evolution installed).
You cannot copy your addressbook.db from your desktop to Neo (bug 1119).
If you want to import your old contacts to the Neo you could use this script:
If you first want to remove all existing contacts you could use this script.
If you have all contacts in seperate vcf files and just want to import all at once:
Simple script for one big contactsfile
(please add a .py after the filename, sorry my hoster gives an error if i link to .py files, even .py.txt)
In the simple scripts you need to add the following lines
ps = os.popen ('ps auxwwwwe | grep -m 1 DBUS_SESSION_BUS_ADDRESS') l = ps.read () r = re.compile ('DBUS_SESSION_BUS_ADDRESS=(\S+)') m = r.search (l) a = m.expand ('\\1') os.environ ['DBUS_SESSION_BUS_ADDRESS'] = a
To use the manage Script you need your Contacts in VCF format.
Doing a quick google I was unable to find a free export plugin for outlook (they all seem to want between $19.95 and $49), so I put together some quick-and-dirty VB code to do it. To use it, Open Outlook, then open the VB editor by pressing ALT-F11, Insert a module, and paste in the following. Change "Z:\OpenMoko\contacts" to wherever you want your vcf files saved (should be an existing, empty directory), and press F5 to run it.
Code:
Sub ExportContactsToVCF() 'Cheap and nasty way to export All Contacts to VCF files. 'By Dale Maggee, antisol (at) earthling (dot) net Dim CN As ContactItem Dim NS As NameSpace Dim Fld As MAPIFolder Set NS = Application.GetNamespace("MAPI") Set Fld = NS.GetDefaultFolder(olFolderContacts) For Each CN In Fld.Items Debug.Print CN.FullName CN.SaveAs "z:\OpenMoko\contacts\" & CN.FullName & ".vcf", olVCard Next CN MsgBox "Done!" End Sub
voila! you now have multiple VCF files in whatever directory you chose, suitable to be imported by the python script below.
The script is for the 2007.2 Version (default install on Neo FreeRunner), not for Qtopia
You need Python to use this script so do a
opkg install python-dbus
to install python and the python dbus module
This script needs all contacts in one big file
You also could run this script on a ssh session!
python manage-contacts.py load < contacts.txt
python manage-contacts.py dump > contacts.txt
You must run the script in the OM Terminal, not over ssh
The script does a listdir and imports ALL files it found in that dir. (i'm a bad python programmer)
Thanks to Import_Sim_Contacts for the original Python Script.
The Qtopia addressbook application suports import of VCF files out of the box:
LD_LIBRARY_PATH=/opt/Qtopia/lib /opt/Qtopia/bin/addressbook /home/root/addressbook.vcf
You will be asked if you want to import the contacts form addressbook.vcf (the contact name will be taken from the "N:" vCard field).