]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Rename fuzzy_check max_score to hits_limit for clarity
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 28 Dec 2025 18:45:05 +0000 (18:45 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 28 Dec 2025 18:45:05 +0000 (18:45 +0000)
commit7fd47dad2f9e8b63b5bc6d9576e96c8a329b4737
treee80ffd9d2505c1d8f1516b7b13661e42a220cb1e
parent88c4eb26401c6372b74e18dddf468d16d2152727
[Feature] Rename fuzzy_check max_score to hits_limit for clarity

The option name max_score was confusing as it doesn't refer to the
symbol score but rather the number of fuzzy hash hits at which the
normalized score reaches ~1.0 (formula: tanh(e * hits / hits_limit)).

- Rename max_score -> hits_limit in fuzzy_check.c and default config
- Add backward compatibility: max_score is still accepted as an alias
- Add lua_cfg_transform to handle legacy configs (max_score overrides
  hits_limit to ensure local.d overrides work correctly)
- Add explanatory comments in config and documentation
conf/modules.d/fuzzy_check.conf
lualib/lua_cfg_transform.lua
src/plugins/fuzzy_check.c