Hi,
my provider relays my mail and does spam checking with header tagging.
I want to create rules to check for the tag headers and score them:
- positive for existing headers
- negative for non existing headers.
The first one is easy:
header PMS_Spam_DB exists:PMS-Spam-DB
score PMS_Spam_DB 0.1
describe PMS_Spam_DB is "PMS-Spam-DB" tagged by provider
I haven't figured out yet how to check for a header not existing in the
mail.
I tried
header NON_PMS_Spam_DB ALL =~ /^(?:PMS-Spam-DB\:)/
score NON_PMS_Spam_DB -0.1
but the test does not fail, if the header does exit.
Is there a way to accomplish this?
Marc