Hello!
I've created a beta version of crm114 plugin for
SpamAssassin. I didn't implemented config options
(is it possible without hacking SA Conf.pm?), so crm114
command is hardcoded in the module code. Here's my
sample configuration:
loadplugin crm114 /home/jmv/projects/spamassassin/crm114.pm
ifplugin crm114
# This is probably lame, but I've just started using
# crm114 and doesn't fully understand yet how it
# works and what its pR really mean
body CRM114_SPAM_00 eval:check_crm('-10.00', '-0.01')
body CRM114_SPAM_10 eval:check_crm('-50.00', '-10.00')
body CRM114_SPAM_50 eval:check_crm('-100.00', '-50.00')
body CRM114_SPAM_99 eval:check_crm('undef', '-100.00')
body CRM114_HAM_00 eval:check_crm('0.00', '10.00')
body CRM114_HAM_10 eval:check_crm('10.00', '50.00')
body CRM114_HAM_50 eval:check_crm('50.00', '100.00')
body CRM114_HAM_99 eval:check_crm('100.00', 'undef')
score CRM114_SPAM_00 1
score CRM114_SPAM_10 1.5
score CRM114_SPAM_50 3
score CRM114_SPAM_99 4
score CRM114_HAM_00 -1
score CRM114_HAM_10 -1.5
score CRM114_HAM_50 -3
score CRM114_HAM_99 -4
tflags CRM114_SPAM_00 learn
tflags CRM114_SPAM_10 learn
tflags CRM114_SPAM_50 learn
tflags CRM114_SPAM_99 learn
tflags CRM_114_HAM_00 nice learn
tflags CRM_114_HAM_10 nice learn
tflags CRM_114_HAM_50 nice learn
tflags CRM_114_HAM_99 nice learn
describe CRM114_SPAM_00 CRM114 pR from -0.01 to -10.00
describe CRM114_SPAM_10 CRM114 pR from -10.00 to -50.00
describe CRM114_SPAM_50 CRM114 pR from -50.00 to -100.00
describe CRM114_SPAM_99 CRM114 pR from -100.00 to -999.99
describe CRM114_HAM_00 CRM114 pR from 0.00 to 10.00
describe CRM114_HAM_10 CRM114 pR from 10.00 to 50.00
describe CRM114_HAM_50 CRM114 pR from 50.00 to 100.00
describe CRM114_HAM_99 CRM114 pR from 100.00 to 999.99
endif
Module code is in the attachment. Comments are welcome.
Eugene
--
Email: jmv /at/ online.ru
I've created a beta version of crm114 plugin for
SpamAssassin. I didn't implemented config options
(is it possible without hacking SA Conf.pm?), so crm114
command is hardcoded in the module code. Here's my
sample configuration:
loadplugin crm114 /home/jmv/projects/spamassassin/crm114.pm
ifplugin crm114
# This is probably lame, but I've just started using
# crm114 and doesn't fully understand yet how it
# works and what its pR really mean
body CRM114_SPAM_00 eval:check_crm('-10.00', '-0.01')
body CRM114_SPAM_10 eval:check_crm('-50.00', '-10.00')
body CRM114_SPAM_50 eval:check_crm('-100.00', '-50.00')
body CRM114_SPAM_99 eval:check_crm('undef', '-100.00')
body CRM114_HAM_00 eval:check_crm('0.00', '10.00')
body CRM114_HAM_10 eval:check_crm('10.00', '50.00')
body CRM114_HAM_50 eval:check_crm('50.00', '100.00')
body CRM114_HAM_99 eval:check_crm('100.00', 'undef')
score CRM114_SPAM_00 1
score CRM114_SPAM_10 1.5
score CRM114_SPAM_50 3
score CRM114_SPAM_99 4
score CRM114_HAM_00 -1
score CRM114_HAM_10 -1.5
score CRM114_HAM_50 -3
score CRM114_HAM_99 -4
tflags CRM114_SPAM_00 learn
tflags CRM114_SPAM_10 learn
tflags CRM114_SPAM_50 learn
tflags CRM114_SPAM_99 learn
tflags CRM_114_HAM_00 nice learn
tflags CRM_114_HAM_10 nice learn
tflags CRM_114_HAM_50 nice learn
tflags CRM_114_HAM_99 nice learn
describe CRM114_SPAM_00 CRM114 pR from -0.01 to -10.00
describe CRM114_SPAM_10 CRM114 pR from -10.00 to -50.00
describe CRM114_SPAM_50 CRM114 pR from -50.00 to -100.00
describe CRM114_SPAM_99 CRM114 pR from -100.00 to -999.99
describe CRM114_HAM_00 CRM114 pR from 0.00 to 10.00
describe CRM114_HAM_10 CRM114 pR from 10.00 to 50.00
describe CRM114_HAM_50 CRM114 pR from 50.00 to 100.00
describe CRM114_HAM_99 CRM114 pR from 100.00 to 999.99
endif
Module code is in the attachment. Comments are welcome.
Eugene
--
Email: jmv /at/ online.ru