View Single Post
  #3  
Old August 5th 08, 01:00 PM posted to microsoft.public.outlook.program_addins
mad
external usenet poster
 
Posts: 12
Default mail receiving event

Ok, thanks!

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

On 4 ΑΧΗ, 16:01, "Ken Slovak - [MVP - Outlook]"
wrote:
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.

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

"mad" wrote in message

...

Hello!


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


Thanks.


Ads