|
evol2tbird-addressbook.py (2004 06 06)
...back to the regularly scheduled program... I wrote this script over a year ago to migrate my addressbook from Evolution to Thunderbird. It worked well then; it should work just fine now. The nice thing is that it will migrate a lot of the little meta-information you keep in address books about folks whereas the "csv" method from above will not. So... give it a try and tell me how it works for you. From the docstring for evol2tbird-addressbook.py:
""" evolution --> thunderbird addressbook migration script
Known to work with Ximian Evolution 1.2 and Mozilla Thunderbird 0.6.
Or right about 2004-06-05.
Both products are mail clients for Linux and other platforms. Both rock.
This utility was written because Ximian Evolution (1.2) does not export its
address book very well to other programs in general, and Mozilla
Thunderbird (0.6) in particular. Both programs are at fault I think.
I googled for a solution and got a half-baked python & perl script combo
that did some of the job. Since I was not satisfied with that, I decided
to spend a bit of time and write a more robust utility myself. I.e., it
was one of those one-off programs that ended up expanding and taking way
too much of my time!
USAGE:
./evol2tbird-addressbook.py --db [path to evolution's addressbook.db]
or
./evol2tbird-addressbook.py --vcard [path to evolution's exported vcards]
(if no options are used the default is
--db ~/evolution/local/Contacts/addressbook.db)
How it works:
o I iterate over the addressbook records in Evolution's bsddb Contacts
database.
-or-
I iterate over the VCard records in a text file that Evolution exported.
o as I pull in data, I translate that data into strings that are comma
deliminated - Comma Seperated Values, or CSV.
o this cvs output is *exactly* formated to what the Thunderbird mail
client expects.
What would be better:
o Evolution needs to be able to convert the data to a more robust portable
(and *sigh* more complex) format such as LDAP Data Interchange Format
(LDIF) that anyone can parse. I am certain it is on their todo list.
o Thunderbird needs to be able to import Evolution's exported VCards
natively. Evolution is extremely popular. It only makes sense.
o This utility would be better if it translated Evolution's VCard format
to LDIF. Maybe I will do that one of these days. Don't hold your breath
though. ;)
License: CC-GNU LGPL v2.1
Copyright © 2004-2005 Todd Warner
Script and signature file (key): A NOTE ABOUT DOWNLOADING evol2tbird-addressbook.py!
See also:
<-- back to main page |