aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/lua/neural.lua
blob: 70857d429a8725896e736434600463a14c569988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rspamd_config:register_symbol({
  name = 'SPAM_SYMBOL',
  score = 5.0,
  callback = function()
    return true, 'Fires always'
  end
})

rspamd_config:register_symbol({
  name = 'HAM_SYMBOL',
  score = -3.0,
  callback = function()
    return true, 'Fires always'
  end
})

rspamd_config:register_symbol({
  name = 'NEUTRAL_SYMBOL',
  score = 1.0,
  flags = 'explicit_disable',
  callback = function()
    return true, 'Fires always'
  end
})