I'm looking for a way to prevent users from deleting mail, due to a bug in 8.4 which causes GDPR issues. I've looked in HAL source but since mail can only be deleted from the browse window and not the inspect window, the standard RecordRemoveTest does not apply and I cannot find any function which runs when deleting from the browse window.
Does anyone know how to do this please?