diff options
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index a8b08cc51..fb84c4988 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -779,6 +779,12 @@ rspamd_lua_call_pre_filters (struct rspamd_task *task) lua_tostring (cd->L, -1)); lua_pop (cd->L, 1); } + + if (task->pre_result.action != METRIC_ACTION_MAX) { + /* Stop processing on reaching some pre-result */ + break; + } + cur = g_list_next (cur); } } |