struct rspamd_stat_ctx *st_ctx;
struct rspamd_classifier *cl;
const ucl_object_t *obj, *elt1, *elt2;
- struct rspamd_scan_result *mres = NULL;
+ struct rspamd_scan_result *mres = task->result;
struct rspamd_task **ptask;
lua_State *L;
unsigned int i;
* - We learn spam if action is ACTION_REJECT
* - We learn ham if score is less than zero
*/
- mres = task->result;
if (mres) {
if (mres->score > rspamd_task_get_required_score(task, mres)) {
spam_score = t;
}
- mres = task->result;
-
if (mres) {
if (mres->score >= spam_score) {
task->flags |= RSPAMD_TASK_FLAG_LEARN_SPAM;