[python-win32] getting email adresses from outlook

Jürgen Kareta python at kareta.de
Wed Jun 1 14:44:52 CEST 2005


 I've solved my problem. After adding CDO to my Outlook installation it 
works now:

from win32com.client.dynamic import Dispatch
s.Logon('Microsoft Outlook')
entries=s.AddressLists('Globales Adressbuch').AddressEntries
for entr in entries:
    print entr.Name,entr.Fields(0x39fe001e).Value
Mark and Simon:
thanks for your useful help. I'll look for the spambayes solution, as 
this code is only the first step for a bigger solution.


More information about the Python-win32 mailing list