diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-05 11:35:02 +0100 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-05 11:35:02 +0100 |
commit | 35b17f0600cefe0537b0e775e9db0ccb34f89721 (patch) | |
tree | 93d732db301bf4537ea8c21e5ca48c9cf538120c /test/functional/configs | |
parent | b679ef76a23e43a88ab1b0af722de4b13bb0cff3 (diff) | |
download | rspamd-35b17f0600cefe0537b0e775e9db0ccb34f89721.tar.gz rspamd-35b17f0600cefe0537b0e775e9db0ccb34f89721.zip |
[Test] Add SpamAssassin metas/foreign dependencies test
Diffstat (limited to 'test/functional/configs')
-rw-r--r-- | test/functional/configs/spamassassin.conf | 1 | ||||
-rw-r--r-- | test/functional/configs/spamassassin.rules | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/configs/spamassassin.conf b/test/functional/configs/spamassassin.conf index ddd65b95e..eabefea2c 100644 --- a/test/functional/configs/spamassassin.conf +++ b/test/functional/configs/spamassassin.conf @@ -1,3 +1,4 @@ spamassassin { rules = "${TESTDIR}/configs/spamassassin.rules" } +lua = "${TESTDIR}/lua/simple.lua" diff --git a/test/functional/configs/spamassassin.rules b/test/functional/configs/spamassassin.rules index e020fe7b9..201dd1ae5 100644 --- a/test/functional/configs/spamassassin.rules +++ b/test/functional/configs/spamassassin.rules @@ -32,3 +32,13 @@ describe FREEMAIL_SUBJECT Subject contains freemail score FREEMAIL_SUBJECT 1.0 endif + +# These rules are /not/ from SpamAssassin project + +header TEST_XFOO X-Foo =~ /.{1,50}/ +score TEST_XFOO 1 +header TEST_XBAR X-Bar =~ /.{1,50}/ +score TEST_XBAR 1 +meta TEST_META1 TEST_XFOO && TEST_XBAR +meta TEST_META2 TEST_META1 && SIMPLE_TEST +meta TEST_META3 TEST_META1 && TEST_META2 |