ret |= SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_GHOST;
} else if (g_ascii_strcasecmp (str, "idempotent") == 0) {
ret |= SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_GHOST |
- SYMBOL_TYPE_IDEMPOTENT;
+ SYMBOL_TYPE_IDEMPOTENT | SYMBOL_TYPE_CALLBACK;
} else {
gint fl = 0;
local id = rspamd_config:register_symbol({
name = 'NEURAL_CHECK',
- type = 'postfilter',
+ type = 'postfilter,callback',
flags = 'nostat',
priority = 6,
callback = ann_scores_filter
rspamd_config:register_symbol({
name = 'NEURAL_LEARN',
- type = 'idempotent',
+ type = 'idempotent,callback',
flags = 'nostat,explicit_disable',
priority = 5,
callback = ann_push_vector