Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Remove Mail Item Event Doesn't Fire

Geek News

Remove Mail Item Event Doesn't Fire
Nenad 11/5/2008 5:16:00 PM
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

Re: Remove Mail Item Event Doesn't Fire
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 11/5/2008 6:39:17 PM
This is a known problem in Outlook 2003.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nenad" <Nenad[ at ]discussions.microsoft.com> wrote in message
news:86EB39C3-0483-4D98-88BA-77A9B6B8A979[ at ]microsoft.com...
[Quoted Text]
>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
>


Re: Remove Mail Item Event Doesn't Fire
Nenad 11/6/2008 2:01:00 PM
Thank you.

Do you know if there is any workaround?

"Dmitry Streblechenko" wrote:

[Quoted Text]
> This is a known problem in Outlook 2003.
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "Nenad" <Nenad[ at ]discussions.microsoft.com> wrote in message
> news:86EB39C3-0483-4D98-88BA-77A9B6B8A979[ at ]microsoft.com...
> >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
> >
>
>
>
Re: Remove Mail Item Event Doesn't Fire
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 11/8/2008 5:58:45 AM
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
-
"Nenad" <Nenad[ at ]discussions.microsoft.com> wrote in message
news:4E5191D3-ACBB-4489-8085-2ADE38396F07[ at ]microsoft.com...
[Quoted Text]
> 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" <Nenad[ at ]discussions.microsoft.com> wrote in message
>> news:86EB39C3-0483-4D98-88BA-77A9B6B8A979[ at ]microsoft.com...
>> >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
>> >
>>
>>
>>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net