Hi!
Thanks to AXB seek-in-phrases-in-log works OK. Now I'm on the next step with 
automated creating rules.
I suspect that mk_meta_rule_scores doesn't assign scores correctly. I set in 
mk_meta_rule_scores:
my %scoremap = (
  '70' => '1.5',
  '4' => '2.0',
  '0.01' => '3.0',
);

$ cat tmp/clean.cf
# passed hit-rate threshold: 70
body __RULE_AUTORULE_3NILJ5  /Jeżeli zainteresowała Cię ta oferta, to odwiedź 
naszą stronę/
body __RULE_AUTORULE_TQJGPO  /Nézzen körül OTTHON-TAKARÍTÁS ajánlataink 
között\!/
# passed hit-rate threshold: 4
body __RULE_AUTORULE_UG4HMS  /100 W-os LED REFLEKTOR, MOZGÁSÉRZÉKELŐS FÉNYVETŐ/
body __RULE_AUTORULE_GYUXEK  /MR\. WINDOW ABLAKTISZTÍTÓ KÉSZLET/

$ ./mk_meta_rule_scores rule tmp/clean.cf
# Creation: 2017-03-13 14:37:19

# Note: rule names are based on a hash of the content pattern.

# passed hit-rate threshold: 70
#current th: 70 outscore=1.5
meta rule1   (0)
score rule1  0
describe rule1  Body contains frequently-spammed text patterns

body __RULE_AUTORULE_3NILJ5  /Je\x{c5}\x{bc}eli zainteresowa\x{c5}\x{82}a 
Ci\x{c4}\x{99} ta oferta, to odwied\x{c5}\x{ba} nasz\x{c4}\x{85} 
stron\x{c4}\x{99}/
body __RULE_AUTORULE_TQJGPO  /N\x{c3}\x{a9}zzen k\x{c3}\x{b6}r\x{c3}\x{bc}l 
OTTHON-TAKAR\x{c3}\x{8d}T\x{c3}\x{81}S aj\x{c3}\x{a1}nlataink 
k\x{c3}\x{b6}z\x{c3}\x{b6}tt\!/
# passed hit-rate threshold: 4
#current th: 4 outscore=2.0
meta rule2   (__RULE_AUTORULE_3NILJ5 || __RULE_AUTORULE_TQJGPO)
score rule2  2.0
describe rule2  Body contains frequently-spammed text patterns

body __RULE_AUTORULE_UG4HMS  /100 W-os LED REFLEKTOR, 
MOZG\x{c3}\x{81}S\x{c3}\x{89}RZ\x{c3}\x{89}KEL\x{c5}\x{90}S 
F\x{c3}\x{89}NYVET\x{c5}\x{90}/
body __RULE_AUTORULE_GYUXEK  /MR\. WINDOW ABLAKTISZT\x{c3}\x{8d}T\x{c3}\x{93} 
K\x{c3}\x{89}SZLET/

#current th:  outscore=2.8
meta rule3   (__RULE_AUTORULE_UG4HMS || __RULE_AUTORULE_GYUXEK)
score rule3  2.8
describe rule3  Body contains frequently-spammed text patterns


Why "score rule1" is set to zero?
Marcin

Reply via email to