aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-07-30 11:17:34 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-07-30 11:18:00 +0100
commit0b547ff8e801979b2f1ea42b1b686476f10341cf (patch)
treedbfe3f2c9bb8e48200ee5cb2ac66b63c74955e56 /src/lua
parent9395e3c03727a0a5902dccb49f49788bff9027d9 (diff)
downloadrspamd-0b547ff8e801979b2f1ea42b1b686476f10341cf.tar.gz
rspamd-0b547ff8e801979b2f1ea42b1b686476f10341cf.zip
[Minor] Add `task:set_subject` alias for sanity
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 21e24fc45..3968c01eb 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -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),