Hello,
Currently there is no way (or at least we did not find a way) to run a function when an email is being opened/read.
Our scenario is to display an informational message (via mailbox.item.notificationMessages) when the user open an email without clicking any buttons.
Thank you