MAPI Read-only Folder

A

AtulSureka

Hi,

I have a PST file mounted in outlook profile. I want to make the PST folders
as Read-only. Is there any MAPI property by which I can set read-only
permission on PST folders so that user can not add/remove any item from those
folders.

Atul Sureka
 
K

Ken Slovak - [MVP - Outlook]

No, whoever opens a PST file is the owner of that PST file. You can't make a
folder in it read-only.
 
A

AtulSureka

Thanks for your response, - Basically I have the outlook addin which mounts a
PST file. That PST file is having some messages. However I do not want user
to delete the messages. PST is opened in Addin context, Addin should not
allow the user to delete the messages from PST.

Atul

Atul
 
K

Ken Slovak - [MVP - Outlook]

Unless this is Outlook 2007 you cannot do what you want. For Outlook 2007
you can use the BeforeItemMove() event to cancel any deletions (the
targetFolder argument will be null in cases where the item is deleted).
Otherwise come up with something else.
 

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