A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Audit when an email is deleted from a mailbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 7th 08, 06:57 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 13
Default Audit when an email is deleted from a mailbox

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
  #2  
Old March 7th 08, 09:12 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Audit when an email is deleted from a mailbox

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

  #3  
Old March 8th 08, 12:17 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 13
Default Audit when an email is deleted from a mailbox

hi Eric, thanks for your answer. I can roll it out to each user thats
not a problem, where do I start? Can you point me in the right
direction as to what commands or code to use, I have monitored a
mailbox for new entries before, but no for deleting, is there an event
to call?

Thanks again, John

On 7 Mar, 20:12, Eric Legault [MVP - Outlook]
wrote:
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- Hide quoted text -


- Show quoted text -


  #4  
Old March 11th 08, 08:03 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Audit when an email is deleted from a mailbox

Hi John. For easy deployment, you need to develop this solution as a COM
Add-In with Visual Studio:

Developing COM Add-ins for Microsoft Outlook:
http://www.outlookcode.com/article.aspx?ID=36

Your code need to work similar to the example he

How to process incoming messages in Microsoft Outlook:
http://www.outlook-code.com/article.aspx?id=62

However, if you need to monitor more folders than the Inbox, you'll need to
wire up ItemRemove events for multiple folders - not to mention multiple
mailboxes if a user happens to have more than two open.

The more I think about this, the more I'm wondering how in the world we will
handle events firing on the *same folder in multiple locations*... If you're
diligent, coding your own solution may work, but I suspect a third-party
solution for auditing in Exchange may be more practical.

--
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:

hi Eric, thanks for your answer. I can roll it out to each user thats
not a problem, where do I start? Can you point me in the right
direction as to what commands or code to use, I have monitored a
mailbox for new entries before, but no for deleting, is there an event
to call?

Thanks again, John

On 7 Mar, 20:12, Eric Legault [MVP - Outlook]
wrote:
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- Hide quoted text -


- Show quoted text -



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audit copy My interest Outlook - General Queries 4 February 20th 08 05:22 PM
Purge deleted items from shared mailbox Amedee Van Gasse Outlook - General Queries 2 December 11th 07 02:20 PM
Deleted Mails came back into mailbox Neon Outlook - General Queries 0 November 10th 06 12:29 PM
Recovering emails from mailbox that was deleted months ago MB Outlook - General Queries 2 August 16th 06 06:20 PM
How do I audit Outlook Profile Connection Settings Remotely? BrianP Outlook - Installation 3 June 6th 06 11:08 PM


All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.