AppleScripting the creation of Mail.app Rules is a great tip. (Yes, I use [MailMate](https://freron.com/), and my [SaneBox](http://mbsy.co/sanebox/18846293) @SaneBlackHole covers this particular use case for me, but it’s still a great tip. Also, yes, the persistent emails Dr. Drang describes are a bane of my existence, too.)