From: Vsevolod Stakhov Date: Wed, 6 Jun 2018 15:48:19 +0000 (+0100) Subject: [Minor] Allow to set skip_process flag X-Git-Tag: 1.7.6~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd1a4e86673b4fe1778c5e7b5b82f555e71b44a9;p=rspamd.git [Minor] Allow to set skip_process flag --- 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++);