local check_from_display_name = rspamd_config:register_symbol{
type = 'callback',
+ name = 'FROM_DISPLAY_CALLBACK',
callback = function (task)
local from = task:get_from(2)
if not (from and from[1] and from[1].name) then return false end
if opts then
if opts['symbol_rcpt'] or opts['symbol_sender'] then
local id = rspamd_config:register_symbol({
+ name = 'FORGED_CALLBACK',
callback = check_forged_headers,
type = 'callback',
})
'mime types map')
if map then
local id = rspamd_config:register_symbol({
+ name = 'MIME_TYPES_CALLBACK',
callback = check_mime_type,
type = 'callback,nostat'
})
local id = -1
if mime_trie or raw_trie or body_trie then
id = rspamd_config:register_symbol({
+ name = 'TRIE_CALLBACK',
type = 'callback',
callback = tries_callback
})