]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add `task:set_subject` alias for sanity
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 30 Jul 2024 10:17:34 +0000 (11:17 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 30 Jul 2024 10:18:00 +0000 (11:18 +0100)
src/lua/lua_task.c

index 21e24fc4589dfb8210e0be1424aa681fe88ddab2..3968c01ebcf31ce1497d7aaeb6a266e5506f85c4 100644 (file)
@@ -1318,6 +1318,7 @@ static const struct luaL_reg tasklib_m[] = {
        LUA_INTERFACE_DEF(task, get_metric_threshold),
        LUA_INTERFACE_DEF(task, set_metric_score),
        LUA_INTERFACE_DEF(task, set_metric_subject),
+       {"set_subject", lua_task_set_metric_subject},
        LUA_INTERFACE_DEF(task, learn),
        LUA_INTERFACE_DEF(task, set_settings),
        LUA_INTERFACE_DEF(task, get_settings),