[python-win32] WABAccess help ...
timr at probo.com
Wed Mar 12 22:23:02 CET 2008
Clinton Lee Taylor wrote:
> Take two ... This time I think I found something a little better ...
> Another LGPL com lib to access Windows Address Book ... But this one
> seems to work with Python ...
> Okay, so I'm asking again, if anybody (maybe Roger again ... ) Could
> help with a basic working example of how to get just something listing
> out of the WAB ...
> Spend a whole night, with the following code, but can only put stuff
> into the WAB, not get a list of e-mail address ...
Have you gone through the sample code at wabaccess.sourceeforge.net?
Based on samples, something like this should work:
for c in objSession.Containers.Count:
ctr = objSession.Containers(c)
for cid in ctr.Elements.Count
print ctr.Elements(cid).Properties( PR_EMAIL_ADDRESS )
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32