Matt

Well it certainly passes lint with the extra /

Ignoring comments and blank lines I count line 21.

regards

Alan
-----Original Message-----
From: Matt Kettler [mailto:[EMAIL PROTECTED] 
Sent: 26 November 2003 23:42
To: Alan Munday; [EMAIL PROTECTED]
Subject: Re: [SAtalk] Lint and SaUriCustomRules


At 11:10 PM 11/26/03 +0000, Alan Munday wrote:
>If I lint with this in the SaUriCustomRules
>
>uri MY_YAHOO_BOUNCED          /http:\/\/srd\.yahoo\.com\/drst\/.*\*
>http:\/\/
>describe MY_YAHOO_BOUNCED     Trying to hide real URL through Yahoo
redirect
>score MY_YAHOO_BOUNCED        0.5
>
>I get a shed load of errors of which the first is:
>
>Bareword found where operator expected at
>/etc/mail/spamassassin/SaUriCustomRules.cf, rule MY_YAHOO_BOUNCED, line 12,
>near "usr"
>   (Might be a runaway multi-line // string starting on line 1)
>         (Missing operator before usr?)


That rule is missing a trailing /.. at casual glance it looks like it has 
one, but it does not.
The end part should be: http:\/\//



>And just in case it needs to be mentioned, the offending line is not line
12
>(actually 44) in the file and there is no occurrence of "usr" in the file.

1) if you remove all the comments and blanks from SaUriCustomRules.cf, is 
it line 12?

  I suspect that line number is based on counting the number of lines 
parsed, not the number of lines present.


2) usr is probably a piece of text from another file entirely.. leaving a 
trailing / off will SEVERELY confuse the parser. It may wind up confused 
for many many many files worth of rules. 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to