commit 1464550: [Minor] Throw away crappy stuff

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Feb 20 21:49:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-02-20 21:48:19 +0000
URL: https://github.com/rspamd/rspamd/commit/1464550609b1964829a05b6cec7708f9b91a536f (HEAD -> master)

[Minor] Throw away crappy stuff

---
 src/lua/lua_task.c | 10 +---------
 1 file changed, 1 insertion(+), 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) {


More information about the Commits mailing list