scripting ximian evolution

Mark Roach mrroach at okmaybe.com
Wed Oct 16 00:06:10 EDT 2002


On Tue, 15 Oct 2002 22:42:37 +0200, Alex Polite wrote:

> According to ledgend it's possible to interact with ximian evolution's
> addressbook and calendar (wombat?) via python. Has anyone actually
> tried this? If so please post some code.

the addressbook part is pretty simple, it is just vcards stored in a
berkeley db. Get the bsddb3 module and do something like this to show all
the items in the contacts db (unverified code)

import bsddb3

addressbook = '/home/username/evolution/local/contacts/addressbook.db'
contacts = bsddb3.hashopen(addressbook)

for key in contacts.db.keys():
    print contacts.db.get(key)


also check out zesync which is a sync tool for the sharp zaurus and
evolution written in python http://sourceforge.net/projects/zesync/


-Mark



More information about the Python-list mailing list