aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
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++);