parent = id, | parent = id, | ||||
type = 'virtual', | type = 'virtual', | ||||
flags = 'empty', | flags = 'empty', | ||||
score = 0, | |||||
}) | }) | ||||
end | end | ||||
else | else |
callback = greylist_set, | callback = greylist_set, | ||||
priority = 6, | priority = 6, | ||||
}) | }) | ||||
rspamd_config:register_symbol({ | |||||
local id = rspamd_config:register_symbol({ | |||||
name = 'GREYLIST_CHECK', | name = 'GREYLIST_CHECK', | ||||
type = 'prefilter', | type = 'prefilter', | ||||
callback = greylist_check, | callback = greylist_check, | ||||
priority = 6, | priority = 6, | ||||
}) | }) | ||||
rspamd_config:register_symbol({ | |||||
name = settings.symbol, | |||||
type = 'virtual', | |||||
parent = id, | |||||
score = 0, | |||||
}) | |||||
end | end | ||||
end | end |