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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to avoid to delete or open messages ??



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 3rd 08, 08:55 AM posted to microsoft.public.outlook.program_addins
Hector Y. Martinez
external usenet poster
 
Posts: 3
Default How to avoid to delete or open messages ??


Hi, here is my situation, my plugin creates a folder in outlook, then I
want to avoid that any messages in that folder could be deleted... I try
with the ItemRemove event, but this event is called when the message is
already deleted... any suggestion ? Then the other thing is that I want that
the user neither could open the messages in that folder... I test the
NewInspector event from the Inspectors collection, but I don't know how can I
avoid the Inspector to be open. Or should I try something else ? I using C++
for this...

Thanx in advance...

--
"The best way to predict the future, is to invent it"
Ads
  #2  
Old March 3rd 08, 02:09 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to avoid to delete or open messages ??

The best way to prevent people from deleting items in your custom folder is
to set the permissions on the folder so no one can delete items there except
for certain admins. That's possible if the folder is in an Exchange store,
you'd use ADSI code or something like that to set the permissions on the
folder, or if you use Redemption you can use the ACL and ACE objects for the
folder. ADSI code you should post about in an Exchange programming forum.

You cannot prevent people from opening items, however you can cancel the
opening by setting Cancel == true in the MailItem.Open() event handler (or
the Open() handler for any item type).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hector Y. Martinez" wrote in
message news

Hi, here is my situation, my plugin creates a folder in outlook, then I
want to avoid that any messages in that folder could be deleted... I try
with the ItemRemove event, but this event is called when the message is
already deleted... any suggestion ? Then the other thing is that I want
that
the user neither could open the messages in that folder... I test the
NewInspector event from the Inspectors collection, but I don't know how
can I
avoid the Inspector to be open. Or should I try something else ? I using
C++
for this...

Thanx in advance...

--
"The best way to predict the future, is to invent it"


 




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
Avoid creation of new folders in my document when I open outlook? Jochi Outlook - General Queries 3 June 20th 07 01:28 AM
cant delete or open appointment CSpotlight Outlook - Calandaring 3 April 16th 07 03:01 PM
Outlook on two computers - how to avoid duplicate messages Alpha Outlook - General Queries 2 April 5th 07 08:14 PM
Bounced back messages.... can I avoid? Dean Outlook - Using Contacts 1 March 29th 06 08:40 AM
How do I set up outlook express so that messages do open unless I open them. Nev. Outlook Express 2 February 25th 06 11:49 PM


All times are GMT +1. The time now is 08:56 AM.


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.