From 7d355135c9aba53676e974b5a91a06f2da327de8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Sep 2024 13:36:40 +0100 Subject: [PATCH] [Minor] s/BLOCKED/FORBIDDEN/ We want it to be more informative and to distinguish from FUZZY_DENIED --- src/plugins/fuzzy_check.c | 8 ++++---- 1 file 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) { -- 2.39.5