Monday, 11 January 2010

Dump n900 Addressbook ...

import evolution

addresses = evolution.ebook.open_addressbook('default')
contacts = addresses.get_all_contacts()
for contact in contacts:
print contact.get_name()
for property in contact.props:
if contact.get_property(property.name)!=None:
print property.name,": ",contact.get_property(property.name)

No comments:

Post a Comment