]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Allow custom actions with flags in config validation 5740/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 10 Nov 2025 13:58:25 +0000 (13:58 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 10 Nov 2025 13:58:25 +0000 (13:58 +0000)
commit1ce5c814ffd300495f43e69d0906eae4593d4718
tree434c45b31c3464079a98b257a3525efe73a9d73b
parent4afd448fc8207c715d0d8f816a61d56b2c1d07d6
[Fix] Allow custom actions with flags in config validation

The config validation was warning about unknown actions even when they
were valid custom actions defined with flags like 'no_threshold'.

Custom actions (e.g., malware, virus, hard-reject) are properly supported
by the C code but the Lua validation didn't recognize them, causing
spurious warnings.

Fix by checking if an unknown action is defined as an object with flags
before emitting the warning.
lualib/lua_cfg_transform.lua