diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-09-05 13:36:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-09-05 13:36:40 +0100 |
commit | 7d355135c9aba53676e974b5a91a06f2da327de8 (patch) | |
tree | 946267c6cdbfcbbcaca37b03bd084609e27869de /src/plugins | |
parent | 0bc8c311aa6ffbdc6aed2dc7d101186542d3e194 (diff) | |
download | rspamd-7d355135c9aba53676e974b5a91a06f2da327de8.tar.gz rspamd-7d355135c9aba53676e974b5a91a06f2da327de8.zip |
[Minor] s/BLOCKED/FORBIDDEN/
We want it to be more informative and to distinguish from FUZZY_DENIED
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fuzzy_check.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 0af9248e5..dd2347f19 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -49,7 +49,7 @@ #include "libutil/libev_helper.h" #define DEFAULT_SYMBOL "R_FUZZY_HASH" -#define RSPAMD_FUZZY_SYMBOL_BLOCKED "FUZZY_BLOCKED" +#define RSPAMD_FUZZY_SYMBOL_FORBIDDEN "FUZZY_FORBIDDEN" #define RSPAMD_FUZZY_SYMBOL_RATELIMITED "FUZZY_RATELIMITED" #define DEFAULT_IO_TIMEOUT 1.0 @@ -1157,11 +1157,11 @@ int fuzzy_check_module_config(struct rspamd_config *cfg, bool validate) /* Register meta symbols (blocked, ratelimited, etc) */ rspamd_symcache_add_symbol(cfg->cache, - RSPAMD_FUZZY_SYMBOL_BLOCKED, 0, NULL, NULL, + RSPAMD_FUZZY_SYMBOL_FORBIDDEN, 0, NULL, NULL, SYMBOL_TYPE_VIRTUAL, cb_id); rspamd_config_add_symbol(cfg, - RSPAMD_FUZZY_SYMBOL_BLOCKED, + RSPAMD_FUZZY_SYMBOL_FORBIDDEN, 0.0, "Fuzzy access denied", "fuzzy", @@ -2518,7 +2518,7 @@ fuzzy_check_try_read(struct fuzzy_client_session *session) session->rule->name); } else if (rep->v1.value == 503) { - rspamd_task_insert_result(task, RSPAMD_FUZZY_SYMBOL_BLOCKED, 1.0, + rspamd_task_insert_result(task, RSPAMD_FUZZY_SYMBOL_FORBIDDEN, 1.0, session->rule->name); } else if (rep->v1.value == 401) { |