aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-06 16:48:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-06 16:48:19 +0100
commitfd1a4e86673b4fe1778c5e7b5b82f555e71b44a9 (patch)
tree1fab2a7ef34902f639099bf02f4744f8e606e939 /src/lua/lua_task.c
parenta8e5e53c38ec2289c240008bf918ec086ec7a08a (diff)
downloadrspamd-fd1a4e86673b4fe1778c5e7b5b82f555e71b44a9.tar.gz
rspamd-fd1a4e86673b4fe1778c5e7b5b82f555e71b44a9.zip
[Minor] Allow to set skip_process flag
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 85459d440..1807888c8 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -3607,6 +3607,7 @@ lua_task_set_flag (lua_State *L)
LUA_TASK_SET_FLAG (flag, "broken_headers",
RSPAMD_TASK_FLAG_BROKEN_HEADERS, set);
LUA_TASK_SET_FLAG (flag, "greylisted", RSPAMD_TASK_FLAG_GREYLISTED, set);
+ LUA_TASK_SET_FLAG (flag, "skip_process", RSPAMD_TASK_FLAG_SKIP_PROCESS, set);
if (!found) {
msg_warn_task ("unknown flag requested: %s", flag);
@@ -3637,6 +3638,8 @@ lua_task_has_flag (lua_State *L)
LUA_TASK_GET_FLAG (flag, "greylisted", RSPAMD_TASK_FLAG_GREYLISTED);
LUA_TASK_GET_FLAG (flag, "broken_headers",
RSPAMD_TASK_FLAG_BROKEN_HEADERS);
+ LUA_TASK_GET_FLAG (flag, "skip_process",
+ RSPAMD_TASK_FLAG_SKIP_PROCESS);
LUA_TASK_GET_FLAG (flag, "milter",
RSPAMD_TASK_FLAG_MILTER);
@@ -3705,6 +3708,10 @@ lua_task_get_flags (lua_State *L)
lua_pushstring (L, "greylisted");
lua_rawseti (L, -2, idx++);
break;
+ case RSPAMD_TASK_FLAG_SKIP_PROCESS:
+ lua_pushstring (L, "skip_process");
+ lua_rawseti (L, -2, idx++);
+ break;
case RSPAMD_TASK_FLAG_MILTER:
lua_pushstring (L, "milter");
lua_rawseti (L, -2, idx++);