From: Vsevolod Stakhov Date: Mon, 7 Jan 2019 16:08:19 +0000 (+0000) Subject: [Minor] Lua_task: Allow to check mime flag for the task X-Git-Tag: 1.9.0~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e436ccc95d024f11bec5391678edef1f90b609a;p=thirdparty%2Frspamd.git [Minor] Lua_task: Allow to check mime flag for the task --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index e9ac358d83..00e819f32f 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -4178,6 +4178,8 @@ lua_task_has_flag (lua_State *L) RSPAMD_TASK_FLAG_MILTER); LUA_TASK_GET_FLAG (flag, "bad_unicode", RSPAMD_TASK_FLAG_BAD_UNICODE); + LUA_TASK_GET_FLAG (flag, "mime", + RSPAMD_TASK_FLAG_MIME); if (!found) { msg_warn_task ("unknown flag requested: %s", flag);