Outlook 2007 Prevent Hard Deletes

B

Bruce

Using VBA with Outlook 2007 Object Model, is there anyway to prevent/stop
hard deletes on Mail Items? If VBA can't stop hard deletes of Mail Items,
what tools are needed to provide a solution to stop hard deletes in Outlook
2007?

Thanks, Bruce
 
M

Michael Bauer [MVP - Outlook]

AFAIK you can't prevent hard deletes. If you can't teach your users, you
need a backup tool.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sat, 24 Jan 2009 18:38:05 -0800 schrieb Bruce:
 
K

Ken Slovak - [MVP - Outlook]

For Outlook 2007 only the Folder.BeforeItemMove() event can be used for
that. It passes an item reference, a target folder object and a Cancel
argument. If the target folder object is null that means the item is being
deleted. Setting Cancel = True cancels the deletion.

Of course every folder where items might be deleted would have to be handled
for this to be effective. Otherwise an item deleted from a folder that's not
being handled would not fire that event.
 
B

Bruce

Thanks Ken, Michael:
I am employed by a Court and I am writing custom Outlook 2007 solution which
enforces automatic record management archiving/destruction of email records.
I am using Categories to classify different types of email record retention
periods. In this solution, users will not have the ability to manually
delete email records. I needed a solution to prevent Deletes and Hard
Deletes. As Ken mentioned, I am trapping all Folder.BeforeItemMove() to
eliminate user manual email deletions.

I believe I discovered effective way to disable the "Shift" Key within
Outlook 2007, which will disable users ability to perform Hard Deletes.
Using Group Policy, I applied the below configuration to Policy.

Microsoft Office Outlook 2007 -->
Disable Items In User Interface-->
Custom-->
Disable Shortcut Keys-->Enabled

Add the below key/modifier to disable
4,4

Thanks All for your help!

Bruce F. Cramer
 

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