aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_task.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index cbbae7aac..d5a1cd59e 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2081,18 +2081,10 @@ lua_task_set_pre_result (lua_State * L)
if (lua_type (L, 3) == LUA_TSTRING) {
message = lua_tostring (L, 3);
-
- if (lua_type (L, 7) != LUA_TSTRING) {
- /* Keep compatibility here :( */
-
- ucl_object_replace_key (task->messages,
- ucl_object_fromstring_common (message, 0, UCL_STRING_RAW),
- "smtp_message", 0,
- false);
- }
}
else {
message = "unknown reason";
+ flags |= RSPAMD_PASSTHROUGH_NO_SMTP_MESSAGE;
}
if (lua_type (L, 4) == LUA_TSTRING) {