Re: Import Contacts

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland Mas
Date: Monday, July 14, 2008 - 6:09 am

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.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Import Contacts, smurfy - phil, (Wed Jul 9, 8:26 am)
Re: Import Contacts, Al Johnson, (Wed Jul 9, 8:44 am)
Re: Import Contacts, Stroller, (Wed Jul 9, 9:33 am)
Re: Import Contacts, Al Johnson, (Wed Jul 9, 3:52 pm)
Re: Import Contacts, Brian C, (Fri Jul 11, 9:18 am)
Re: Import Contacts, Brian C, (Fri Jul 11, 9:45 am)
Re: Import Contacts, Kalle Happonen, (Fri Jul 11, 12:22 pm)
Re: Import Contacts, Al Johnson, (Sat Jul 12, 4:41 am)
Re: Import Contacts, Andreas Dalsgaard, (Mon Jul 14, 5:01 am)
Re: Import Contacts, Kalle Happonen, (Mon Jul 14, 5:25 am)
Re: Import Contacts, Roland Mas, (Mon Jul 14, 6:09 am)
Re: Import Contacts, Roland Mas, (Mon Jul 14, 6:17 am)
Re: Import Contacts, smurfy - phil, (Mon Jul 14, 6:30 am)
Re: Import Contacts, Roland Mas, (Mon Jul 14, 6:51 am)
Re: Import Contacts, "Marco Trevisan (Tre ..., (Mon Jul 14, 8:43 pm)
Re: Import Contacts, C R McClenaghan, (Wed Jul 16, 10:35 am)
Re: Import Contacts, Al Johnson, (Wed Jul 16, 12:49 pm)
Re: Import Contacts, Roland Mas, (Wed Jul 16, 1:24 pm)
Re: Import Contacts, Alexander Lehner, (Thu Jul 17, 7:06 pm)
Re: Import Contacts, Roland Mas, (Fri Jul 18, 12:24 am)
Re: Import Contacts, Jeffrey Ratcliffe, (Sun Jul 20, 11:13 am)
Re: Import Contacts, Roland Mas, (Sun Jul 20, 11:53 am)
Re: Import Contacts, C R McClenaghan, (Sun Jul 20, 8:12 pm)