If these are delegated mailboxes, then you would need the code to run on each
of the computers for the users who are opening other people's mailboxes.
That's probably not going to happen in most environments...
Otherwise, you would need to develop an Exchange Event sink where the code
runs "silently" on the server 24/7, without client side code or needing
Outlook to be open. Sinks are for advanced programmers though.
--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog:
http://blogs.officezealot.com/legault/
" wrote:
I have a situation where we have many people have access to a mailbox,
this mailbox every now and again has emails deleted and we dont know
who deletes them. We need everyone to have rights to delete them
because the mailbox will become unmanageable if we dont.
Is there a way using VBA that when an email is deleted from the
mailbox all I want to do is either write a line to a log file comma
delimited with like email_id, sender, and who the logged person was
who deleted it and what time and a few other things or update a
database.
We back the email up so it is easy to recover but it is very important
these things get actioned.
Any help grateful received.
Thanks John