rspamd_config:register_symbol{ | rspamd_config:register_symbol{ | ||||
name = 'BITCOIN_ADDR', | name = 'BITCOIN_ADDR', | ||||
description = 'Message has a valid bitcoin wallet address', | |||||
callback = function(task) | callback = function(task) | ||||
local rspamd_re = require "rspamd_regexp" | local rspamd_re = require "rspamd_regexp" | ||||
local hash = require "rspamd_cryptobox_hash" | local hash = require "rspamd_cryptobox_hash" |
local prio_cb_id = rspamd_config:register_symbol { | local prio_cb_id = rspamd_config:register_symbol { | ||||
name = 'HAS_X_PRIO', | name = 'HAS_X_PRIO', | ||||
type = 'callback,mime', | type = 'callback,mime', | ||||
description = 'X-Priority check callback rule', | |||||
score = 0.0, | score = 0.0, | ||||
group = 'headers', | group = 'headers', | ||||
callback = function (task) | callback = function (task) |