Use MSGraph search API query to filter email messages.
Automate your Outlook attachment downloads using Python