From 6e436ccc95d024f11bec5391678edef1f90b609a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 7 Jan 2019 16:08:19 +0000 Subject: [PATCH] [Minor] Lua_task: Allow to check mime flag for the task --- src/lua/lua_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index e9ac358d8..00e819f32 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); -- 2.39.5