A couple of snippets to help deploying a rule to move messages from a specific account to a folder.
Add a folder to an EXO mailbox using EWS. Requires EWS, an app registration with the required permissions and, a cert for authentication
Move messages from a specifice account to a folder and mark them as read.