OT / SARE: 70_sare_specific.cf lint error
Julian Field
MailScanner at ecs.soton.ac.uk
Sat Jul 23 16:20:01 IST 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
I could well believe it. Each rule is turned into a Perl function. So
rule names are governed by the restrictions applied by Perl on what
makes a valid function name. Function names cannot start with a number.
No point reporting it to SA Bugzilla, it is beyond their control.
Dhawal Doshy wrote:
> A follow-up to my previous mail(s)
>
> SpamAssassin doesn't understand Rule Names that start with a number, i
> had to change my rule_name from '2nd_xx' to 'Second_xx'. I couldn't
> find this documented on the SA site or Wiki (though there are some
> documented limitations on rule_names like being 22 characters long etc..)
>
> While there are limitations in rule_names, SA started throwing errors
> that were absolutely not related to the actual problem.
>
> If someone can confirm this behaviour, then we could possibly report
> it to the SA bugzilla.
>
> - dhawal
>
> Dhawal Doshy wrote:
>
>> solved.. see below
>>
>> Dhawal Doshy wrote:
>>
>>> Hi,
>>>
>>> Anyone else notice a lint error for 70_sare_specific.cf?? the error
>>> goes like this:
>>>
>>> # /usr/bin/spamassassin -x -D -p
>>> /etc/MailScanner/spam.assassin.prefs.conf --lint
>>> .
>>> [skip]
>>> .
>>> Failed to compile body SpamAssassin tests, skipping:
>>> (Illegal declaration of anonymous subroutine at
>>> /etc/mail/spamassassin/70_sare_specific.cf, rule
>>> __SARE_LOTTO_GREENCARD, line 13.
>>> )
>>> .
>>
>>
>>
>> My screw up.. a new body check rule that i added in another .cf file
>> caused this error. sorry for the false alarm.
>>
>> Time to read Matt's rule writing guide..
>>
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the Wiki (http://wiki.mailscanner.info/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list