MAPI Read-only Folder

  • Thread starter Thread starter AtulSureka
  • Start date Start date
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
 
No, whoever opens a PST file is the owner of that PST file. You can't make a
folder in it read-only.
 
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
 
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.
 
Back
Top