mail receiving event

  • Thread starter Thread starter mad
  • Start date Start date
M

mad

Hello!

How can my add-in know that Outlook 2007 is starting and finishing
mail receiving?

Thanks.
 
You can't on an automatic send/receive, there are no events for that. For a
synch started by code you can handle the SyncObject.SyncStart and .SyncEnd
events.

You can tell when items are being added to the Inbox using the ItemAdd event
of the Inbox's Items collection, but that event will fire even if someone
drops an item there, so it's not foolproof.
 
There are no SyncObject events that fire when a default send/receive is
initiated as a timed event or when started by the user unfortunately.




Ok, thanks!

And how about synchronization or transport state. Can I get their
state?
 
Back
Top