A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Remove Mail Item Event Doesn't Fire



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 5th 08, 05:16 PM posted to microsoft.public.outlook.program_addins
Nenad
external usenet poster
 
Posts: 11
Default Remove Mail Item Event Doesn't Fire

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

  #2  
Old November 5th 08, 06:39 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Remove Mail Item Event Doesn't Fire

This is a known problem in Outlook 2003.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nenad" wrote in message
...
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



  #3  
Old November 6th 08, 02:01 PM posted to microsoft.public.outlook.program_addins
Nenad
external usenet poster
 
Posts: 11
Default Remove Mail Item Event Doesn't Fire

Thank you.

Do you know if there is any workaround?

"Dmitry Streblechenko" wrote:

This is a known problem in Outlook 2003.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nenad" wrote in message
...
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




  #4  
Old November 8th 08, 05:58 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Remove Mail Item Event Doesn't Fire

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/rd...ems.htm#events /plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nenad" wrote in message
...
Thank you.

Do you know if there is any workaround?

"Dmitry Streblechenko" wrote:

This is a known problem in Outlook 2003.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nenad" wrote in message
...
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






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Item Unload Event Doesn't Fire Tim Pulley Add-ins for Outlook 3 May 16th 07 04:42 PM
How Do I Get Outlook Startup Event to Fire? John Lane Outlook and VBA 1 March 28th 07 08:18 PM
Word editor does not fire Shutdown event toni santa Outlook and VBA 1 February 2nd 07 07:28 PM
How to fire NewMail&NewMailEx Event? baryon Outlook - General Queries 0 August 17th 06 04:31 PM
script event does not fire urs Outlook - General Queries 2 March 1st 06 04:55 PM


All times are GMT +1. The time now is 10:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.