comparator-ref.siv 331 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
require "subaddress";
Laurent Montel's avatar
Laurent Montel committed
2
require "regex";
Laurent Montel's avatar
Laurent Montel committed
3 4 5 6 7 8 9 10 11 12 13 14
require "spamtest";
require "relational";
require "spamtestplus";

#SCRIPTNAME: Script part 0
# Try to catch unsolicited email.
if anyof (not address :all :regex [ "to", "cc", "bcc" ] "me(\\\\+.*)?@company\\\\.com"
, spamtest  :value "gt" :comparator "i;ascii-casemap" "0"
)
{
    discard;
}