[python-win32] getting email adresses from outlook
Mark Hammond
mhammond at skippinet.com.au
Wed Jun 1 14:19:31 CEST 2005
> results in
> File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line
> 79, in _GetGoodDispatch
> IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
> pythoncom.IID_IDispatch)
> com_error: (-2147221005, 'Ung\xfcltige Klassenzeichenfolge',
> None, None)
>
> So it seems to be that mapi/cdo is not or not correct installed on my
> machine (xp pro sp2).
I'm guessing that MAPI is installed, but SP2 is preventing "script"
(automation) access.
I know that well before XP SP2, the SpamBayes project moved away from the
high-level Mapi.Session objects towards the low-level win32com.mapi
interfaces for similar reasons (eg, an Outlook 2000 SP would cause a
confirmation dialog before allowing access to these Mapi.Session objects -
the low-level MAPI functions avoided this.) I'm fairly confident that these
low-level interfaces work in XP SP2, as SpamBayes apparently does.
Unfortunately there is a steep learning curve related to using these
interfaces, but on the upside their performance is significantly better ;)
Mark
More information about the Python-win32
mailing list