commit 6e436cc: [Minor] Lua_task: Allow to check mime flag for the task

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 7 16:14:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-07 16:08:19 +0000
URL: https://github.com/rspamd/rspamd/commit/6e436ccc95d024f11bec5391678edef1f90b609a

[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);


More information about the Commits mailing list