Skip to content

Commit

Permalink
[Minor] Some more missing flags
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 21, 2022
1 parent 585006e commit b861390
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/plugins/lua/clustering.lua
Expand Up @@ -299,6 +299,7 @@ if opts['rules'] then
rspamd_config:register_symbol{
name = rule.symbol .. '_STORE',
type = 'idempotent',
flags = 'empty,explicit_disable,ignore_passthrough',
callback = callback_gen(clusterting_idempotent_cb, rule),
}
end
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/lua/neural.lua
Expand Up @@ -961,7 +961,7 @@ end
rspamd_config:register_symbol({
name = 'NEURAL_LEARN',
type = 'idempotent,callback',
flags = 'nostat,explicit_disable',
flags = 'nostat,explicit_disable,ignore_passthrough',
priority = 5,
callback = ann_push_vector
})
Expand Down
1 change: 1 addition & 0 deletions src/plugins/lua/ratelimit.lua
Expand Up @@ -912,6 +912,7 @@ if opts then
rspamd_config:register_symbol {
type = 'idempotent',
name = 'RATELIMIT_UPDATE',
flags = 'explicit_disable,ignore_passthrough',
callback = ratelimit_update_cb,
}
end
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/lua/replies.lua
Expand Up @@ -303,7 +303,8 @@ if opts then
type = 'idempotent',
callback = replies_set,
priority = 5,
group = "replies",
group = 'replies',
flags = 'explicit_disable,ignore_passthrough',
})
local id = rspamd_config:register_symbol({
name = 'REPLIES_CHECK',
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/lua/reputation.lua
Expand Up @@ -1328,7 +1328,7 @@ local function parse_rule(name, tbl)
rspamd_config:register_symbol{
name = rule.symbol .. '_POST',
type = 'postfilter',
flags = 'nostat',
flags = 'nostat,explicit_disable,ignore_passthrough',
callback = callback_gen(reputation_postfilter_cb, rule),
}
end
Expand All @@ -1338,6 +1338,7 @@ local function parse_rule(name, tbl)
rspamd_config:register_symbol{
name = rule.symbol .. '_IDEMPOTENT',
type = 'idempotent',
flags = 'explicit_disable,ignore_passthrough',
callback = callback_gen(reputation_idempotent_cb, rule),
}
end
Expand Down

0 comments on commit b861390

Please sign in to comment.