Freemail Subject
Should Contain ${FREEMAIL_RESULT} FREEMAIL_SUBJECT
+Metas
+ Should Contain ${FREEMAIL_RESULT} TEST_META3
+
*** Keywords ***
SpamAssassin Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/spamassassin.conf
spamassassin {
rules = "${TESTDIR}/configs/spamassassin.rules"
}
+lua = "${TESTDIR}/lua/simple.lua"
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
--- /dev/null
+rspamd_config:register_symbol({
+ name = 'SIMPLE_TEST',
+ score = 1.0,
+ callback = function(task)
+ return true, 'Fires always'
+ end
+})
From: <faked.asdfjisiwosp372@outlook.com>
Subject: Reply me at faked.asdfjisiwosp372@hotmail.com
Date: Sun, 31 Jul 2016 11:40:08 +0100
+X-Foo: 1
+X-Bar: 1
Content-type: text/plain
MIME-Version: 1.0