Do any of your custom rules contain a "#"?

"#" starts a comment in local .cf files unless backslash-escaped.

Even if it's within quotes or a slash-delimited regex.

The error will usually point to some place unrelated to the
location of the #.

(This nearly drove me nuts before I figured out what was
causing the problem.)

On Mon, Nov 04, 2002 at 02:49:38PM -0500, Matt Kettler wrote:
> run spamassassin --lint, and spamasssassin -tD <sample-nonspam.txt.
> 
> It looks like one of your custom rules has a typo in it and spamassassin is 
> barfing trying to read your rule files. In particular I'd look for a rule 
> that's missing the ending / or /i, or anything containing ") ~" (minus the 
> quotes).
> 
> spamassassin -tD <sample-nonspam.txt will also tell you where the rule 
> files are being read from.
> 
> The rule typo is going to be what causes those error messages, and is 
> likely causing the custom rule you included in your email to be ignored. In 
> general when SA encounters a typo it might wind up ignoring a LARGE number 
> of rules before it can begin to parse again. This is particularly true for 
> regex rules that "don't end" :)
> 
> 
> 
> At 11:08 AM 11/4/2002 -0800, Chris wrote:
> >Hello,
> >
> >  Im getting the following error message when running spamd,
> > ----------------------------------------------------------
> >(chris)(ralph|.spamassassin)$ Failed to run header SpamAssassin tests, 
> >skipping
> >some: syntax error at (eval 15) line 59, near ") ~"
> >syntax error at (eval 15) line 67, near ") ~"
> >syntax error at (eval 15) line 552, near ";
> >    }"
> > ----------------------------------------------------------
> > I have no idea where to fix this. Any help would be appreciated.
> >
> > Also, I cannot tell if what is wrong with my test rules, I never get any 
> >matches
> > no matter where I put them. How can I tell where the rules are being 
> >read from??
> > -----------------------------------------------------------------
> > header THIS_IS_A_TEST           Subject =~ /this is a test/i
> > score THIS_IS_A_TEST            28
> > ------------------------------------------------------------------
> >
> >Thanks, Chris
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: ApacheCon, November 18-21 in
> >Las Vegas (supported by COMDEX), the only Apache event to be
> >fully supported by the ASF. http://www.apachecon.com
> >_______________________________________________
> >Spamassassin-talk mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ApacheCon, November 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to be
> fully supported by the ASF. http://www.apachecon.com
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

-- 
Mike Van Pelt      email: [EMAIL PROTECTED]    phone: 408-433-4282   
                   Pager: 800-533-4559 or email [EMAIL PROTECTED]
                       or web www.skytel.com, pin 5334559


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to