As your command below shows you're using --reqpatlength 0
Start off with some sane as for example --reqpatlength 40 you may also want to play with --maxtextread ( I use --maxtextread 8192 for FRAUD rules) On 03/07/2017 03:33 PM, mar...@mejor.pl wrote:
Hi! I'm trying to use masses/rule-dev/seek-phrases-in-log --reqpatlength <X>
I'm not sure if it works correctly, please look: $ /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log --ham /home/masscheck/auto/tmp/all_w.h --spam /home/masscheck/auto/tmp/all_w.s --rules --ruleprefix __SEEK_FRAUD_ --reqpatlength 0 Tue Mar 7 15:28:32 2017: reading /home/masscheck/auto/tmp/all_w.s... Tue Mar 7 15:28:32 2017: n-grams active: 637 Tue Mar 7 15:28:32 2017: reading /home/masscheck/auto/tmp/all_w.h... Tue Mar 7 15:28:32 2017: n-grams active: 626 Tue Mar 7 15:28:32 2017: filtering into message subsets... Tue Mar 7 15:28:32 2017: message subsets found: 10 Tue Mar 7 15:28:32 2017: deduping and assembling regexps... Tue Mar 7 15:28:32 2017: working on message subset 1 (0)... # 1.000 73.333 0.000 body __SEEK_FRAUD_8PS1M3 / interested in / body __SEEK_FRAUD_VMFZAX / looking for / # 1.000 66.667 0.000 body __SEEK_FRAUD_MUS7GX /Dear / body __SEEK_FRAUD_Y2S6AV /My name is .{0,20}, I am the personnel manager of a large International company\. Most of the work you can do from home, that is, at a distance\. Salary is \$2.00-\$5.00\./ # 1.000 40.000 0.000 body __SEEK_FRAUD_KPQM4S /Re: / # 1.000 26.667 0.000 body __SEEK_FRAUD_U38RDU /Best regards\!/ # 1.000 26.667 0.000 body __SEEK_FRAUD_P9TXHY /Good day/ # 1.000 20.000 0.000 body __SEEK_FRAUD_GDWWR6 /Have a nice day\!/ # 1.000 13.333 0.000 body __SEEK_FRAUD_LN5SMR /hi\!/ but: $ /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log --ham /home/masscheck/auto/tmp/all_w.h --spam /home/masscheck/auto/tmp/all_w.s --rules --ruleprefix __SEEK_FRAUD_ --reqpatlength 1 Tue Mar 7 15:32:14 2017: reading /home/masscheck/auto/tmp/all_w.s... Tue Mar 7 15:32:14 2017: n-grams active: 637 Tue Mar 7 15:32:14 2017: reading /home/masscheck/auto/tmp/all_w.h... Tue Mar 7 15:32:14 2017: n-grams active: 626 Tue Mar 7 15:32:14 2017: filtering into message subsets... Tue Mar 7 15:32:14 2017: message subsets found: 10 Tue Mar 7 15:32:14 2017: deduping and assembling regexps... Tue Mar 7 15:32:14 2017: working on message subset 1 (0)... Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. Use of uninitialized value in numeric lt (<) at /home/masscheck/spamassassin-trunk//masses/rule-dev/seek-phrases-in-log line 675. perl-5.22.3 Marcin