Over Emailyst
Emailyst is a Mac app that scans a chosen Apple Mail mailbox and sorts ads, newsletters and scam messages. It runs on your Mac, so mail is not sent to a server, and you pick which messages to move. It works with iCloud, Gmail, Outlook and Fastmail accounts connected to Apple Mail. The free version handles 1,000 messages per account; the full version is 29 dollars once.