FW: Negative scoring MCP rule
Richard Mealing
richard at fastnet.co.uk
Tue Dec 11 11:58:16 GMT 2012
That was wrong!
This would be correct!
header __Samplerule1 Subject =~ /\bthis\b/i
header __Samplerule2 Subject =~ /\bsubject\b/i
header __Samplerule3 Subject =~ /\bis\b/i
header __Samplerule4 Subject =~ /\bbanned\b/i
meta localsamplemeta1 (__Samplerule1 && __Samplerule2 && __Samplerule3 && __Samplerule4)
score localsamplemeta1 2 describe localsamplemeta1 subj this subj subject subj is subj banned
--Rich
-----Original Message-----
From: Richard Mealing
Sent: 11 December 2012 09:33
To: MailScanner discussion
Subject: RE: Negative scoring MCP rule
Hi Dave,
Maybe you could write a meta rule instead, since I'm not sure if you can write rules that have spaces between the words like that. I've not tested it.
To be sure, just write a meta and see if that works?
So instead of this -
header SAMPLE_RULE1 Subject =~ /this subject is banned/i
describe SAMPLE_RULE1 Banned Subject
score SAMPLE_RULE1 2
I'd do this -
header Samplerule1 Subject =~ /\bthis\b/i header Samplerule2 Subject =~ /\bsubject\b/i header Samplerule3 Subject =~ /\bis\b/i header Samplerule4 Subject =~ /\bbanned\b/i meta localsamplemeta1 (__Samplerule1 && __Samplerule2 && __Samplerule3 && __Samplerule4) score localsamplemeta1 2 describe localsamplemeta1 subj this subj subject subj is subj banned
I could be wrong :-(
Cheers,
--Rich
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Dave Gattis
Sent: 11 December 2012 01:28
To: MailScanner discussion
Subject: Re: Negative scoring MCP rule
This doesn't work. Can anyone tell me what I'm doing wrong?
If the both rules apply, I'd expect an MCP score of -3.
header SAMPLE_RULE1 Subject =~ /this subject is banned/i
describe SAMPLE_RULE1 Banned Subject
score SAMPLE_RULE1 2
body SAMPLE_RULE2 /this text is banned/i
describe SAMPLE_RULE2 Banned body text
score SAMPLE_RULE2 -5
Thanks,
--
Dave Gattis
> As far as I know, the MPC rules syntax is the same as the normal
> Spamassassin rules syntax. So, Yes.
>
>
> On 10 December 2012 15:17, Dave Gattis <mailscanner at romehosting.com>
> wrote:
>
>> Is it possible to create a rule in MCP that will give a negative score?
>> I need one to offset a false positive generated by a rule that is
>> required.
>> Thanks,
>> --
>> Dave Gattis
>>
>>
>>
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list