commit d51244d: [Minor] Output body_block flag

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Aug 4 17:21:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-04 18:15:55 +0100
URL: https://github.com/rspamd/rspamd/commit/d51244d879edbde60965ee382c40879c4bb8a068 (HEAD -> master)

[Minor] Output body_block flag

---
 src/lua/lua_task.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index ed810a046..092e7fcb9 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -4923,6 +4923,10 @@ lua_task_get_flags (lua_State *L)
 			lua_pushstring (L, "milter");
 			lua_rawseti (L, -2, idx++);
 		}
+		if (task->protocol_flags & RSPAMD_TASK_PROTOCOL_FLAG_BODY_BLOCK) {
+			lua_pushstring (L, "body_block");
+			lua_rawseti (L, -2, idx++);
+		}
 	}
 	else {
 		return luaL_error (L, "invalid arguments");


More information about the Commits mailing list