Blocking E-Mail Using Line in Header

Is there anyway to block (or mark as spam) e-mails that have a matching line in the header?

In 2.1.4 you can use custom spam prefs to adjust the scores of an email:

Simplest thing to do would be to use the “blacklist_to” and “blacklist_from” options, found uner the “WHITELIST AND BLACKLIST OPTIONS” section (

There’s also the possibility for defining custom tests/rules too, if you need more control.