Version 4.20 rule file bug?

Julian Field mailscanner at ecs.soton.ac.uk
Fri May 2 22:52:10 IST 2003


Can you try this patch please? It seems to work for me:

--- Config.pm  2003-04-28 21:29:42.000000000 +0100
+++ Config.pm.new   2003-05-02 22:49:34.000000000 +0100
@@ -1124,9 +1124,13 @@
      $rule   = undef;
      $value  = undef;
      #print STDERR "Line is \"$_\"\n";
-    if (/^(\S+)\s+(\S+)(\s+(\S+))?$/) {
+    #if (/^(\S+)\s+(\S+)(\s+(\S+))?$/) {
+    #  ($direction, $rule, $value) = ($1, $2, $4);
+    if (/^(\S+)\s+(\S+)(\s+(.*))?$/) {
        ($direction, $rule, $value) = ($1, $2, $4);
+      #print STDERR "Dir = $direction, Rule = $rule, Value = $value\n";
      } else {
+      #print STDERR "value is \"$_\"\n";
        MailScanner::Log::WarnLog('Syntax error in line %d of ruleset %s',
                                  $linecounter, $rulesfilename);
        $errors = 1;


At 22:14 02/05/2003, you wrote:
>Yeah. I think it's looking for the action<sp>action<sp>
>
>-----Original Message-----
>From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
>Sent: Friday, May 02, 2003 4:50 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: Version 4.20 rule file bug?
>
>
>Do you mean a space at the end of each line?
>Sounds like something I need to fix this weekend....
>
>At 20:16 02/05/2003, you wrote:
> >OK see the problem.  MailScanner 4.20-2 wants a <space> after the last
> >action.
> >
> >-----Original Message-----
> >From: Rose, Bobby
> >Sent: Friday, May 02, 2003 2:53 PM
> >To: MAILSCANNER at JISCMAIL.AC.UK
> >Subject: Version 4.20 rule file bug?
> >
> >
> >I updated my test box first from 4.19 and Mailscanner won't start.  The
>
> >logs have
> >
> >MailScanner[10515]: MailScanner E-Mail Virus Scanner version 4.20-2
> >starting...
> >MailScanner[10515]: Syntax error in line 20 of ruleset
> >/opt/MailScanner/etc/rules/spam.actions.rules
> >MailScanner[10515]: Syntax error in line 21 of ruleset
> >/opt/MailScanner/etc/rules/spam.actions.rules
> >MailScanner[10515]: Aborting due to syntax errors in
> >/opt/MailScanner/etc/rules/spam.actions.rules.
> >
> >The rules in question are
> >
> >To:     jdoe at x.y.z     delete forward spamtroll at x.y.z
> >To:     x.y.z           deliver forward spamtroll at x.y.z
> >FromTo: default                 deliver
> >
> >This was fine in 4.19.  Is it a bug?
>
>--
>Julian Field
>www.MailScanner.info
>Professional Support Services at www.MailScanner.biz MailScanner thanks
>transtec Computers for their support

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list