Outlook automation

Hi Team,
Currently I am automating Outlook application, where as my requirement is to Filter received emails based on SUB line.I can able to get the emails only based on full SUB line, but is it possible to filter emails with a condition like SUB STARTS WITH or SUB Contains.
Also is it possible to get mails based on required email limit. For example top 10 emails in inbox
If any please share your comments

Hello, which library you are using for automation?
Have you already checked the documentation: