diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-20 21:35:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-20 21:35:41 +0000 |
commit | 7e4aa922ca608d4567c5e9c775bbe614a4e72566 (patch) | |
tree | 58c3b70ae2c446cc9d164c9fa119c9e2f5e2e3fb /src/lua/lua_task.c | |
parent | 1432a7af36901e9cb5243b5d83a377656728896e (diff) | |
download | rspamd-7e4aa922ca608d4567c5e9c775bbe614a4e72566.tar.gz rspamd-7e4aa922ca608d4567c5e9c775bbe614a4e72566.zip |
[Fix] Fix smtp message on passthrough result
Issue: #3269
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 1412a0035..cbbae7aac 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2116,6 +2116,9 @@ lua_task_set_pre_result (lua_State * L) if (strstr (fl_str, "least") != NULL) { flags |= RSPAMD_PASSTHROUGH_LEAST; } + else if (strstr (fl_str, "no_smtp_message") != NULL) { + flags |= RSPAMD_PASSTHROUGH_NO_SMTP_MESSAGE; + } } @@ -5853,7 +5856,7 @@ lua_task_get_metric_result (lua_State *L) lua_pushnumber (L, metric_res->score); lua_settable (L, -3); - action = rspamd_check_action_metric (task); + action = rspamd_check_action_metric (task, NULL); if (action) { lua_pushstring (L, "action"); @@ -5924,7 +5927,7 @@ lua_task_get_metric_action (lua_State *L) struct rspamd_action *action; if (task) { - action = rspamd_check_action_metric (task); + action = rspamd_check_action_metric (task, NULL); lua_pushstring (L, action->name); } else { |