local rcvd_cb_id = rspamd_config:register_symbol{
name = 'CHECK_RECEIVED',
- type = 'callback,mime',
+ type = 'callback',
score = 0.0,
group = 'headers',
callback = function(task)
local prio_cb_id = rspamd_config:register_symbol {
name = 'HAS_X_PRIO',
- type = 'callback,mime',
+ type = 'callback',
description = 'X-Priority check callback rule',
score = 0.0,
group = 'headers',
end
local check_replyto_id = rspamd_config:register_symbol({
- type = 'callback,mime',
+ type = 'callback',
name = 'CHECK_REPLYTO',
score = 0.0,
group = 'headers',
local check_mime_id = rspamd_config:register_symbol{
name = 'CHECK_MIME',
- type = 'callback,mime',
+ type = 'callback',
group = 'headers',
score = 0.0,
callback = function(task)
return false
end,
score = 2.0,
- type = 'mime',
group = 'headers',
description = 'Missing From: header'
}
end,
score = 9.0,
group = 'headers',
- type = 'mime',
description = 'Multiple addresses in From'
}
end,
description = 'Mime-Version .vs. MIME-Version',
score = 0.5,
- group = 'headers',
- type = 'mime',
+ group = 'headers'
}
rspamd_config.FAKE_REPLY = {
end,
description = 'Fake reply',
score = 1.0,
- group = 'headers',
- type = 'mime',
+ group = 'headers'
}
local check_from_id = rspamd_config:register_symbol{
name = 'CHECK_FROM',
- type = 'callback,mime',
+ type = 'callback',
score = 0.0,
group = 'headers',
callback = function(task)
end,
description = 'Binary content-type not specified as an attachment',
score = 4.0,
- type = 'mime',
- group = 'headers'
+ group = 'mime'
}
rspamd_config.CTYPE_MIXED_BOGUS = {
end,
description = 'multipart/mixed without non-textual part',
score = 1.0,
- type = 'mime',
- group = 'headers'
+ group = 'mime'
}
local function check_for_base64_text(part)
end,
description = 'Has text part encoded in base64',
score = 0.1,
- group = 'headers',
- type = 'mime',
+ group = 'mime'
}
rspamd_config.MIME_BASE64_TEXT_BOGUS = {
end,
description = 'Has text part encoded in base64 that does not contain any 8bit characters',
score = 1.0,
- group = 'headers',
- type = 'mime',
+ group = 'mime'
}
local function is_8bit_addr(addr)
end,
description = 'Invalid 8bit character in From header',
score = 6.0,
- group = 'headers',
- type = 'mime',
+ group = 'headers'
}
rspamd_config.INVALID_RCPT_8BIT = {
end,
description = 'Invalid 8bit character in recipients headers',
score = 6.0,
- group = 'headers',
- type = 'mime',
+ group = 'headers'
}
rspamd_config.XM_CASE = {
end,
description = 'X-mailer .vs. X-Mailer',
score = 0.5,
- group = 'headers',
- type = 'mime',
+ group = 'headers'
}