summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-15 16:24:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-15 16:24:44 +0000
commit5321190dc5e445cb5a81143be7bfd6fe0afc13b0 (patch)
tree0b18a4b5ef360b180eaa2c7ddb3bd0fa8c227c02 /rules
parentd54cddeeee88a24bcfa75a9144989812fcd11208 (diff)
downloadrspamd-5321190dc5e445cb5a81143be7bfd6fe0afc13b0.tar.gz
rspamd-5321190dc5e445cb5a81143be7bfd6fe0afc13b0.zip
[Project] Add some generic code to squeeze lua rules
Diffstat (limited to 'rules')
-rw-r--r--rules/headers_checks.lua2
-rw-r--r--rules/misc.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index 334e0ab93..00f2e505a 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -310,7 +310,7 @@ rspamd_config:register_symbol{
group = 'headers',
}
-rspamd_config:register_dependency(check_replyto_id, 'FROM_NAME_HAS_TITLE')
+rspamd_config:register_dependency('CHECK_REPLYTO', 'FROM_NAME_HAS_TITLE')
local check_mime_id = rspamd_config:register_symbol{
name = 'CHECK_MIME',
diff --git a/rules/misc.lua b/rules/misc.lua
index 702431c1a..2646e42d6 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -338,8 +338,8 @@ local freemail_reply_neq_from_id = rspamd_config:register_symbol({
score = 3.0,
group = 'headers',
})
-rspamd_config:register_dependency(freemail_reply_neq_from_id, 'FREEMAIL_REPLYTO')
-rspamd_config:register_dependency(freemail_reply_neq_from_id, 'FREEMAIL_FROM')
+rspamd_config:register_dependency('FREEMAIL_REPLYTO_NEQ_FROM_DOM', 'FREEMAIL_REPLYTO')
+rspamd_config:register_dependency('FREEMAIL_REPLYTO_NEQ_FROM_DOM', 'FREEMAIL_FROM')
rspamd_config.OMOGRAPH_URL = {
callback = function(task)