mail receiving event

M

mad

Hello!

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

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
M

mad

Ok, thanks!

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

You can't on an automatic send/receive, there are no events for that. Fora
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.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm


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

Ken Slovak - [MVP - Outlook]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top