Is your feature request related to a problem? Please describe.
I propose improve "Export messages" security.
Actually when you enable "Export messages" feature, by add role “Mail Messages”, you can send messages via email to any address which you provide in field To additional email. Also you can send to any user in system. It can lead to leak potentially sensitive data.
Describe the solution you'd like
If is possible please add option when messages can be exported only to user who request it, hide fields To users and To additional emails.
When export messages works as now, is not possible to use in corporate environment.
Describe alternatives you've considered
Instead of send via email, attach exported messages as a messages with attachment in channel when export request were send.
Is your feature request related to a problem? Please describe. I propose improve "Export messages" security. Actually when you enable "Export messages" feature, by add role “Mail Messages”, you can send messages via email to any address which you provide in field
To additional email
. Also you can send to any user in system. It can lead to leak potentially sensitive data.Describe the solution you'd like If is possible please add option when messages can be exported only to user who request it, hide fields
To users
andTo additional emails
. When export messages works as now, is not possible to use in corporate environment.Describe alternatives you've considered Instead of send via email, attach exported messages as a messages with attachment in channel when export request were send.
Additional context![image](https://user-images.githubusercontent.com/50440047/130219677-4fb0373b-6e95-419d-a8e8-a72f737487f3.png)