Reputation: 53
Is it possible to see who moves an email from a folder to a shared folder?
We have a shared email folder named "Work". In this folder there are e-mail items who need to be processed within an amount of time.
Sometimes, someone moves e-mail items back into this Work folder. I would like to see who moved the mail item into the folder and/or where the item came from.
Maybe with somekind of notification: %Username% moved an email with subject %Subject% from %source_folder% to "Work".
I'll guess somekind of Event should check new mail in "Work" with a recieve date older than lets say 2 hour. And with the help of the internet i can make that. But i can't find how to extract the information "who moved it" en "From where".
Any help or push howto extract that specific information would be great.
Upvotes: 0
Views: 12760
Reputation: 17278
Using the Stackoverflow link provided by Richard Morgan, running it on machines of all users, you'll get an event the exact moment the mail is moved. The user running it can be queried using NameSpace.CurrentUser. Putting these two together gives you the required information.
You'll probably want to gather this information in a central location for monitoring. As a suggestion, you could use the Outlook Object Model to send yourself a mail with this information. Additionally you might want to display a message informing the user that they really shouldn't be moving work back into the work folder (and management has been informed about their action). Using appropriate (nice and friendly) wording of course.
Upvotes: 1