Detect 'Move to Folder' user action through drag and drop in Outlo

G

g62msdn

Is there a way to detect, through events, when a user moves selected items to
a folder in Outlook? I need to detect these events even when the user drags
and drops the messages, instead of using the 'Move to Folder' button on the
edit menu.

I also need a solution for 'Copy to Folder' through drag and drop.

Any help would be greatly appreciated.
 
K

Ken Slovak - [MVP - Outlook]

You can handle the ItemAdd event of the Items collection of the folder you
want, but if the result could be moving/copying to any folder you'd need an
Items collection event handler for every folder. ItemRemove would tell you
something was removed from the source folder but not what, just that
something was removed.
 
G

g62msdn

Hi Ken,
Thank you for your reply. The ItemAdd event almost works. What is lacking
is the fact that the event does not fire on an item move to folder until the
user switches to that folder. I think this may have to do with the fact that
I'm on an IMAP server, as you may recall. Any other suggestions that may
catch these events through detecting actual changes to the folder?
 
K

Ken Slovak - [MVP - Outlook]

IMAP is a real problem, not much you can do about that. The problem is the
server has everything and until it's downloaded locally you can't do
anything. I don't have any suggestions to make for you.
 

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