From: Vsevolod Stakhov Date: Tue, 14 Oct 2025 12:36:15 +0000 (+0100) Subject: Revert "[Fix] Move nresults_postfilters recording to after POST_FILTERS stage" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9d1b2323b2caac110ce32450beadf8e68b2e085;p=thirdparty%2Frspamd.git Revert "[Fix] Move nresults_postfilters recording to after POST_FILTERS stage" This reverts commit b4649ad851f67e64d2186100b9b53eb187f1f062. --- diff --git a/src/libserver/task.c b/src/libserver/task.c index 7fcf07a13b..0d58ad3c7b 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -721,6 +721,7 @@ rspamd_task_process(struct rspamd_task *task, unsigned int stages) case RSPAMD_TASK_STAGE_COMPOSITES: rspamd_composites_process_task(task); + task->result->nresults_postfilters = task->result->nresults; break; case RSPAMD_TASK_STAGE_POST_FILTERS: @@ -736,11 +737,6 @@ rspamd_task_process(struct rspamd_task *task, unsigned int stages) !(task->flags & (RSPAMD_TASK_FLAG_LEARN_SPAM | RSPAMD_TASK_FLAG_LEARN_HAM | RSPAMD_TASK_FLAG_LEARN_CLASS))) { rspamd_stat_check_autolearn(task); } - - if (all_done) { - /* Record results count after postfilters to detect if learning stages add symbols */ - task->result->nresults_postfilters = task->result->nresults; - } break; case RSPAMD_TASK_STAGE_LEARN: