Andreas Dalsgaard, 2008-07-14 14:01:07 +0200 :
[...]
Please pardon my intruding into a thread, I just subscribed to the
list. I have also worked on contacts management, mostly to allow
myself to fix non-ASCII names in a real editor with a real keyboard.
The result is the attached script, which improves on the previous
ones in the following ways:
- you can run it through SSH, and it looks for a DBUS session;
- you can dump all contacts to a file (a series of concatenated
vcards);
- you an reload that file (after having altered it), and it'll update
contacts when they already exist (based on UID) or create
new contacts otherwise.
So, basically:
$ scp manage-contacts.py openmoko:
$ ssh openmoko python manage-contacts.py dump > contacts.txt
$ emacs/vim/nano/gedit/whatever contacts.txt
$ ssh openmoko python manage-contacts.py load < contacts.txt
As far as I'm concerned (look, I'm a Debian integrist, I'm
*supposed* to care about these things :-), my modifications to the
initial script are subject to the WTFPL.
Roland.
--
Roland Mas
Plus on en fout, plus y'en a du riz.
-- Proverbe chinois.