Re: [python-win32] how to create a instance of PyIMAPISession by hand

2013-05-08 Thread Mark Hammond
On 8/05/2013 11:29 PM, Christian K. wrote: The following code has been suggested to me to get a handle to Outlook's mapi session. from win32com.client import Dispatch from win32com.mapi import mapi app = Dispatch('Outlook.Application') app.GetNamespace('MAPI').Session.MAPIOBJECT The MAPIOBJEC

[python-win32] how to create a instance of PyIMAPISession by hand

2013-05-08 Thread Christian K .
The following code has been suggested to me to get a handle to Outlook's mapi session. from win32com.client import Dispatch from win32com.mapi import mapi app = Dispatch('Outlook.Application') app.GetNamespace('MAPI').Session.MAPIOBJECT The MAPIOBJECT would then have to be cast to a IMAPISessio