There is an appstore module that can read emails from an email box, the inbox or a folder on the mail server:
https://marketplace.mendix.com/link/component/1042
You will get the emails as file documents in your database and can process them in your logic. Run as a scheduled event to update regularly.