MailItem.Move

Status
Not open for further replies.
J

j

Hey All,

I'm developing shared AddIn for Outlook 2003, C# 2.0.

The scenario:

i subscribed to Item Add event for 'My Folder'.

i open Otulook (AddIn is loaded) and psysically move item from 'Inbox'

folder to 'My Folder'.

in the code: i catched the 'Item add' event, and want to know from

wchich fodler item was dragged/moved.

I wonder if there any solution for that???, cause mailItem 'Parent'

property pointed me to current folder the item present.

Thanks for advance.
 
K

Ken Slovak - [MVP - Outlook]

You can't get the original folder from the ItemAdd() event in the target

folder. You'd need to subscribe to ItemRemove() in any possible source

folder. That fires after the item was removed, and doesn't tell you what was

removed, but it will provide a clue as to which folder an item was removed

from.

"j" <Evgeny.Br@gmail.com> wrote in message

news:78801e43-5e65-4095-a409-03bc1bfc3427@v15g2000yqn.googlegroups.com...

> Hey All,

> I'm developing shared AddIn for Outlook 2003, C# 2.0.

> The scenario:

> i subscribed to Item Add event for 'My Folder'.
> i open Otulook (AddIn is loaded) and psysically move item from 'Inbox'
> folder to 'My Folder'.

> in the code: i catched the 'Item add' event, and want to know from
> wchich fodler item was dragged/moved.

> I wonder if there any solution for that???, cause mailItem 'Parent'
> property pointed me to current folder the item present.

> Thanks for advance.
>
 
Status
Not open for further replies.
Top