]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] fuzzy_storage: enhance blacklist handler with richer context 5866/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 13:26:27 +0000 (13:26 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 13:26:27 +0000 (13:26 +0000)
commite521cfcd0c44efee3d681a7bd1362fbd689178c9
tree08d698005744512fdc0da6e85d4d4680b45d687e
parente9bbd8ccee18d14c94c2cbf1555c95bb15e4c1c6
[Feature] fuzzy_storage: enhance blacklist handler with richer context

Pass extended information to Lua blacklist handlers:
- event_type: distinguish "new", "existing", or "blacklist" events
- ratelimit_info: bucket state (level, burst, rate, exceeded_by)
- digest: hash when session context is available
- extensions: domain and source IP from fuzzy extensions

Backwards compatible - existing handlers still receive ip and reason
as first two arguments. New arguments are optional for Lua handlers.

Optimized with early-exit checks when no handlers are registered.
src/fuzzy_storage.c