Can I know what are you giving in the filter condition. If it’s regarding to the subject give the syntax as below:
"[Subject] = Course Invoices"
This is filter out the mail messages with the subject Course Invoices after that you can save the attachments.
Hope it helps!!