I configure Amazon SES to store email to S3.
Also I configure s3fs to mount this mailbox to local filesystem.
But files are visible with permission 0000.
This can be solved by setting x-amz-meta- headers.
Is it possible to write Lamda function which will add this header to new file (email stored at S3)? like this