]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_task: Some better handling of rewrite_message flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 14 Jul 2019 11:43:28 +0000 (12:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 14 Jul 2019 11:43:28 +0000 (12:43 +0100)
src/lua/lua_task.c

index 6182d64fbff495388c40a2daf45857c76013f0a8..1167edb503fae8d4a71bba60d46054824ff5e44e 100644 (file)
@@ -4741,6 +4741,7 @@ lua_task_set_flag (lua_State *L)
                                RSPAMD_TASK_FLAG_BROKEN_HEADERS, set);
                LUA_TASK_SET_FLAG (flag, "greylisted", RSPAMD_TASK_FLAG_GREYLISTED, set);
                LUA_TASK_SET_FLAG (flag, "skip_process", RSPAMD_TASK_FLAG_SKIP_PROCESS, set);
+               LUA_TASK_SET_FLAG (flag, "message_rewrite", RSPAMD_TASK_FLAG_MESSAGE_REWRITE, set);
 
                if (!found) {
                        msg_warn_task ("unknown flag requested: %s", flag);