{
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(),
task->fin_arg = session;
task->resolver = session->ctx->resolver;
- /* TODO: allow to disable autolearn in protocol */
- task->flags |= RSPAMD_TASK_FLAG_LEARN_AUTO;
task->s = rspamd_session_create(task->task_pool, rspamd_proxy_task_fin,
NULL, (event_finalizer_t) rspamd_task_free, task);
data = rspamd_http_message_get_body(msg, &len);
task->http_conn = session->http_conn;
task->resolver = ctx->resolver;
- /* TODO: allow to disable autolearn in protocol */
- task->flags |= RSPAMD_TASK_FLAG_LEARN_AUTO;
session->worker->nconns++;
rspamd_mempool_add_destructor(task->task_pool,