diff options
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 6a904352f..2bf833681 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2297,6 +2297,9 @@ lua_task_set_pre_result (lua_State * L) else if (strstr (fl_str, "no_smtp_message") != NULL) { flags |= RSPAMD_PASSTHROUGH_NO_SMTP_MESSAGE; } + else if (strstr (fl_str, "process_all") != NULL) { + flags |= RSPAMD_PASSTHROUGH_PROCESS_ALL; + } } @@ -2311,7 +2314,7 @@ lua_task_set_pre_result (lua_State * L) /* Don't classify or filter message if pre-filter sets results */ - if (res_name == NULL && !(flags & RSPAMD_PASSTHROUGH_LEAST)) { + if (res_name == NULL && !(flags & (RSPAMD_PASSTHROUGH_LEAST|RSPAMD_PASSTHROUGH_PROCESS_ALL))) { task->processed_stages |= (RSPAMD_TASK_STAGE_CLASSIFIERS | RSPAMD_TASK_STAGE_CLASSIFIERS_PRE | RSPAMD_TASK_STAGE_CLASSIFIERS_POST); |