diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-30 11:17:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-30 11:18:00 +0100 |
commit | 0b547ff8e801979b2f1ea42b1b686476f10341cf (patch) | |
tree | dbfe3f2c9bb8e48200ee5cb2ac66b63c74955e56 /src/lua | |
parent | 9395e3c03727a0a5902dccb49f49788bff9027d9 (diff) | |
download | rspamd-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.c | 1 |
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), |