]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Output body_block flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Aug 2019 17:15:55 +0000 (18:15 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Aug 2019 17:15:55 +0000 (18:15 +0100)
src/lua/lua_task.c

index ed810a046277551b02a67adcd6542efece881286..092e7fcb9a23895e28330cf9cda3b59fd77cce2c 100644 (file)
@@ -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");