The solution is pretty strait forward now.
The best practice is to combine outlook mail rules and Power Automate flow.
You can set up a folder, and use mail rule to determine which mails need to be archived (move the mail to this folder). And then in Power Automate flow, just monitor the new mails to this folder.
It will be better to add a time stamp to the file name.
