Is is possible to allow users to soft delete mail messsages but not physically delete any messages

We would like users to be able to soft delete items in their mail but not be able to physically delete any meesages. If you take away the users delete access, the can not soft delete. I also tried intreceprting the QueryDocumentDelete event. This event seems to get triggered when you soft delete a message, but does not get triggered when you physically delete a message from the trash folder. Any ideas? Thanks.

Subject: Is is possible to allow users to soft delete mail messsages but not physically delete any messages

Normally I don’t let my users to delete documents from any database. I control it by ACL.

But many times, the users need to do it. In that cases, I put an action in the form (visible only in edit mode) with a formula like this:

field form := "DELETE "+form;

field deletedby := @name([cn]; @username)+ ", "+@text( @now)

With this, the documents will not appear in the views (if they have a correct selection formula).

And you can create a view with the soft deleted documents with this selection formula:

select @begins( form; “DELETED”)

Subject: RE: Is is possible to allow users to soft delete mail messsages but not physically delete any messages

That won’t work in a mail database as nicely, since the documents are mostly displayed in folders rather than views.