Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exchange 2000 InboxSink

Status
Not open for further replies.

metaphish

Programmer
Joined
Jul 11, 2001
Messages
3
Location
CA
We registered a VB COM object as an InboxSink in WebStorage System Explorer. When the inbox receives a mail, the asynchronous OnSave event is fired and our COM object is trigered.

The problem is sometimes the event is fired twice by one email.

Any idea?
Thanks in advance.

 
I haven't really worked with Asychronous events, but if it is like Sychronous events, then it is called twice. You can decide what to do at each calling by using lflags:

If lFlags And EVT_SYNC_BEGIN Then
' First time the sink has been called.

'code here

ElseIf lFlags And EVT_SYNC_COMMITTED Then
' Second time the sink has been called.

'code here

ElseIf lFlags And EVT_SYNC_ABORTED Then
' Save is aborted.

'code here

End if

Hope that helps.

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top