Willy
Willy

Reputation: 10638

VSTO Outlook: Detect when a message is moved from a folder to another

Is there any way to know when a message is moved from a folder to another in the explorer view? Some event I can handle?

I need to do some things just when a message is moved from one folder to another.

Upvotes: 0

Views: 98

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

You can handle the ItemAdd event on the target folder where items are moved.

Also you may find the Folder.BeforeItemMove event helpful. It is fired when an item is about to be moved or deleted from a folder, either as a result of user action or through program code.

Upvotes: 1

Related Questions