aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-05-18 12:56:01 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-05-18 12:57:16 +0100
commit95215c625aa3d720165780f836d01227d1d3fbc8 (patch)
tree0f4264f68be690d8abe6d056598c1b4230b3d658 /src/libserver
parentc13a45b71d7edcb692c2f1269a517bf26d471b3c (diff)
downloadrspamd-95215c625aa3d720165780f836d01227d1d3fbc8.tar.gz
rspamd-95215c625aa3d720165780f836d01227d1d3fbc8.zip
[Fix] Allow autolearn for the controller worker
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 270bb80ea..6b349d359 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -70,7 +70,7 @@ rspamd_task_new(struct rspamd_worker *worker,
{
struct rspamd_task *new_task;
rspamd_mempool_t *task_pool;
- unsigned int flags = 0;
+ unsigned int flags = RSPAMD_TASK_FLAG_LEARN_AUTO;
if (pool == NULL) {
task_pool = rspamd_mempool_new(rspamd_mempool_suggest_size(),