aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/settings.conf
blob: d46c46b3069c0489226e6bdc73926a85e3720de7 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
lua = ${LUA_SCRIPT};

settings {
  id_test {
    id = "id_test";
    apply {
      symbols_enabled = ["SIMPLE_TEST"];
    }
  }

  id_pre { # implicit id
    apply {
      symbols_enabled = ["SIMPLE_PRE"];
    }
  }

  id_virtual {
    apply {
      symbols_enabled = ["SIMPLE_VIRTUAL"];
    }
  }

  id_virtual_group {
    apply {
      groups_enabled = ["vg"];
      SIMPLE_VIRTUAL = 10.0;
    }
  }
}
classifier {
  backend = "sqlite3";
  statfile {
    spam = true;
    symbol = BAYES_SPAM;
    path = "/tmp/bayes.spam.sqlite3";
  }
  statfile {
    spam = false;
    symbol = BAYES_HAM;
    path = "/tmp/bayes.ham.sqlite3";
  }
  min_learns = 1;
  min_token_hits = 1;
}