From: Vsevolod Stakhov Date: Thu, 20 Feb 2020 21:48:19 +0000 (+0000) Subject: [Minor] Throw away crappy stuff X-Git-Tag: 2.4~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1464550609b1964829a05b6cec7708f9b91a536f;p=thirdparty%2Frspamd.git [Minor] Throw away crappy stuff --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index cbbae7aacb..d5a1cd59e3 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) {