NO SETTINGS SPAM
${result} = Scan Message With Rspamc ${SPAM_MESSAGE}
Check Rspamc ${result} SIMPLE_TEST
+ Should Contain ${result.stdout} SIMPLE_VIRTUAL
+ Should Not Contain ${result.stdout} SIMPLE_VIRTUAL1
Should Contain ${result.stdout} SIMPLE_PRE
Should Contain ${result.stdout} SIMPLE_POST
Should Contain ${result.stdout} BAYES_SPAM
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings-Id=id_virtual
Check Rspamc ${result} SIMPLE_VIRTUAL
Should Not Contain ${result.stdout} SIMPLE_TEST
+ Should Not Contain ${result.stdout} SIMPLE_VIRTUAL1
Should Not Contain ${result.stdout} SIMPLE_POST
Should Not Contain ${result.stdout} SIMPLE_PRE
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings-Id=id_virtual_group
Check Rspamc ${result} SIMPLE_VIRTUAL
Should Not Contain ${result.stdout} SIMPLE_TEST
+ Should Not Contain ${result.stdout} SIMPLE_VIRTUAL1
Should Not Contain ${result.stdout} SIMPLE_POST
Should Not Contain ${result.stdout} SIMPLE_PRE
group = 'b',
callback = function(task)
task:insert_result('SIMPLE_VIRTUAL', 1.0)
+ task:insert_result('SIMPLE_VIRTUAL1', 1.0)
return true, 'Fires always'
end
})
group = 'vg',
parent = id,
})
+
+rspamd_config:register_symbol({
+ name = 'SIMPLE_VIRTUAL1',
+ type = 'virtual',
+ forbidden_ids = 'id_virtual,id_virtual_group',
+ allowed_ids = 'id_virtual1',
+ score = 1.0,
+ group = 'vg',
+ parent = id,
+})