I did that using the POP3/IMAP connector. I created a rule in the inbox so that if certain conditions are met, such as specific strings in the subject or body, the email is moved to a specific folder. I do this outside the SOAR. Then, I configured the connector to check only that specific folder in the mail account.
I’ll write an article explaining it when I have some free time. 😀
I use the MS Graph Connector to ingest from specific inbox folders for our email address that we assigned for the SOAR. There is an ingest configured for each folder. I created rules to move the emails to the correct folder. And a playbook triggers on the ingest and based upon the folder that is ingested the playbook performs specific actions.