Gmail has a half-decent filter procedure, where you just put in a few of the words - usually offensive, and the emails are automatically deleted!
It's also useful on sites like LinkedIn, which is impossible to eradicate, even though I retired years ago! I still get strangers wanting to be in touch for building work mainly!
I'm sure the others like Thunderbird, Firefox etc., have something similar!