Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-11 Thread Arn Vollebregt
> I'm traveling at the moment so can't look in any detail, but what would > help is if you could attach a diff rather than the modified files. Here you go. Regards, Arn Vollebregt PyIMsgStore.cpp.patch Description: Binary data PyIMsgStore.h.patch Description: Binary data _

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-11 Thread Mark Hammond
On 10/06/2010 8:25 PM, Arn Vollebregt wrote: I have made an attempt at implementing the Advise function for PyIMsgStore, as you will find attached. However, following the trend thusfar, onNotify() still is not called. Am I on the wrong path here, or am I still missing something? I'm traveling a

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-10 Thread Arn Vollebregt
I have made an attempt at implementing the Advise function for PyIMsgStore, as you will find attached. However, following the trend thusfar, onNotify() still is not called. Am I on the wrong path here, or am I still missing something? Regards, Arn Vollebregt P.S.: In my previous email I was clai

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-08 Thread Arn Vollebregt
Ah, I found out why the fnevNewMail event doesnt fire: Advise is only implemented for PyIMAPISession and PyIMAPITable, and not (for example) for PyIMsgStore and PyIMAPIFolder. The later are the only objects which receive fnevNewMail: http://msdn.microsoft.com/en-us/library/cc840027.aspx Will this

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-07 Thread Mark Hammond
I'd suggest looking for some C++ code which manages to hook that event as a point of comparison for what magic needs to be done to make things work. Mark On 8/06/2010 12:53 AM, Arn Vollebregt wrote: Hi, A while ago I asked a question[1] about hooking MAPI events in Outlook. Although this que

[python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-07 Thread Arn Vollebregt
Hi, A while ago I asked a question[1] about hooking MAPI events in Outlook. Although this question was answered[2] back then, I am afraid I am still stuck on the subject: It seems I have been able to hook the AdviseSink, but the onNotify() never fires. However, the fnevNewMail[3] event is seen by