Remove Mail Item Event Doesn't Fire

N

Nenad

I am programming against Outlook 2003 using Visual Studio 2008.

I have noticed that ItemRemove event from
Microsoft.Office.Interop.Outlook.MAPIFolder object never fire for the last
item in the folder. More precise, it never fires if remove operation leaves
folder empty after execution.

Is it normal behavior?

Thanks
 
D

Dmitry Streblechenko

Not in OOM - on the MAPI level (that is where the problem is), TABLE_CHANGED
event is fired rather than TABLE_ROW_DELETED.
This was fixed in Outlook 2007 as far as I know.
Outlook Object Model does not track TABLE_CHANGED event, <plug> Redemption
(through the RDOItems.CollectionModified event) does -
http://www.dimastr.com/redemption/rdo/RDOItems.htm#events </plug>

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

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