Vsevolod Stakhov
1 year ago
No known key found for this signature in database
GPG Key ID: 7647B6790081437
1 changed files with
7 additions and
0 deletions
-
lualib/lua_bayes_learn.lua
|
|
|
@ -76,6 +76,13 @@ exports.autolearn = function(task, conf) |
|
|
|
mime_rcpts) |
|
|
|
end |
|
|
|
|
|
|
|
if not task:get_queue_id() then |
|
|
|
-- We should skip messages that come from `rspamc` or webui as they are usually |
|
|
|
-- not intended for autolearn at all |
|
|
|
lua_util.debugm(N, task, 'no need to autolearn - queue id is missing') |
|
|
|
return |
|
|
|
end |
|
|
|
|
|
|
|
-- We have autolearn config so let's figure out what is requested |
|
|
|
local verdict, score = lua_verdict.get_specific_verdict("bayes", task) |
|
|
|
local learn_spam, learn_ham = false, false |
|
|
|
|