]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Throw away crappy stuff
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Feb 2020 21:48:19 +0000 (21:48 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Feb 2020 21:48:19 +0000 (21:48 +0000)
src/lua/lua_task.c

index cbbae7aacb19bf143e94fd1ba161794439f08754..d5a1cd59e393ee01f5f3f0cacaeb17122c011646 100644 (file)
@@ -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) {