Re: How to fix the SA lint errors?

2006-01-28 Thread Matt Kettler
BG Mahesh wrote:
> I am using SA 3.0.4. Not sure why these errors are occuring,


Did you download any rulesets by copy-pasting them? It looks like a file full of
rules got word-wrapped somewhere.


For example:
> config: SpamAssassin failed to parse line, skipping: P_6_ALPH_L + 
> __GAP_7_ALPH_L + __GAP_8_ALPH_L + __GAP_9_ALPH_L + __GAP_10_ALPH_L >= 5)

The above line looks a lot like it's half of a meta rule that got word-wrapped.

P_6_ALPH_L is not any part of any standard distro rule, so I don't know where it
came from but the file that contains it has been word-wrapped. SA can't deal
with arbitrary line-wraps added into a file. Its parser simply expects one line
per config option.

> 
> 
> 



How to fix the SA lint errors?

2006-01-27 Thread BG Mahesh

I am using SA 3.0.4. Not sure why these errors are occuring,


# spamassassin --lint
config: SpamAssassin failed to parse line, skipping: P_6_ALPH_L + 
__GAP_7_ALPH_L + __GAP_8_ALPH_L + __GAP_9_ALPH_L + __GAP_10_ALPH_L >= 5)
config: SpamAssassin failed to parse line, skipping: P_6_ALPH_R + 
__GAP_7_ALPH_R + __GAP_8_ALPH_R + __GAP_9_ALPH_R + __GAP_10_ALPH_R >= 5)
config: SpamAssassin failed to parse line, skipping: P_6_ALPH_B + 
__GAP_7_ALPH_B + __GAP_8_ALPH_B + __GAP_9_ALPH_B + __GAP_10_ALPH_B >= 5)
config: SpamAssassin failed to parse line, skipping: HARB + __GAP_8_CHARB + 
__GAP_9_CHARB + __GAP_10_CHARB >= 5)
config: SpamAssassin failed to parse line, skipping: P_6_ALPH_L + 
__GAP_7_ALPH_L + __GAP_8_ALPH_L + __GAP_9_ALPH_L + __GAP_10_ALPH_L + 
__GAP_1_ALPH_R + __GAP_2_ALPH_R + __GAP_
config: SpamAssassin failed to parse line, skipping: 3_ALPH_R + __GAP_4_ALPH_R 
+ __GAP_5_ALPH_R + __GAP_6_ALPH_R + __GAP_7_ALPH_R + __GAP_8_ALPH_R + 
__GAP_9_ALPH_R + __GAP_10_
config: SpamAssassin failed to parse line, skipping: ALPH_R + __GAP_1_ALPH_B + 
__GAP_2_ALPH_B + __GAP_3_ALPH_B + __GAP_4_ALPH_B + __GAP_5_ALPH_B + 
__GAP_6_ALPH_B + __GAP_7_ALP
config: SpamAssassin failed to parse line, skipping: H_B + __GAP_8_ALPH_B + 
__GAP_9_ALPH_B + __GAP_10_ALPH_B >= 10)
config: SpamAssassin failed to parse line, skipping: A + __GAP_7_WORDB < 1)
config: SpamAssassin failed to parse line, skipping: = 3)
config: SpamAssassin failed to parse line, skipping: = 5)
invalid regexp for rule __LISTKEYWORD: 
/(?:level|host|fr.|USD|CHF|EUR|euro|file|price|pieces|stück|save|artikel|server|Kbyte|Copy
config: SpamAssassin failed to parse line, skipping: right)/i
config: SpamAssassin failed to parse line, skipping: E + __GAP_2_CHAR + 
__GAP_3_CHAR + __GAP_4_CHAR + __GAP_5_CHAR + __GAP_6_CHAR + __GAP_7_CHAR + 
__GAP_8_CHAR + __GAP_9_CHAR
config: SpamAssassin failed to parse line, skipping: + __GAP_10_CHAR + 
__GAP_4_WORD + __GAP_5_WORD + __GAP_6_WORDA + __GAP_6_WORDB + __GAP_7_WORDA + 
__GAP_7_WORDB + __GAP_ALPH
config: SpamAssassin failed to parse line, skipping: _C + __GAP_POINT - 
(__SPAMREPORT * 4) + __RANDOM_CHARS_1 + __RANDOM_CHARS_2 + ((__RANDOM_CHARS_3 + 
__RANDOM_CHARS_4) * 2)
config: SpamAssassin failed to parse line, skipping: - ((__HTMLCOMMENT + 
__PATHNAME + __GAP_ALPH_L + __GAP_ALPH_R + __GAP_ALPH_B + __GAP_ALPH_D + 
__TXTATTACH + __LISTKEYWORD +
config: SpamAssassin failed to parse line, skipping: HTML_FONT_BIG)*2) - 
__GAP_NOWORD == 5) && ! __HAVE_NOURI
config: SpamAssassin failed to parse line, skipping: E + __GAP_2_CHAR + 
__GAP_3_CHAR + __GAP_4_CHAR + __GAP_5_CHAR + __GAP_6_CHAR + __GAP_7_CHAR + 
__GAP_8_CHAR + __GAP_9_CHAR
config: SpamAssassin failed to parse line, skipping: + __GAP_10_CHAR + 
__GAP_4_WORD + __GAP_5_WORD + __GAP_6_WORDA + __GAP_6_WORDB + __GAP_7_WORDA + 
__GAP_7_WORDB + __GAP_ALPH
config: SpamAssassin failed to parse line, skipping: _C + __GAP_POINT - 
(__SPAMREPORT * 4) + __RANDOM_CHARS_1 + __RANDOM_CHARS_2 + ((__RANDOM_CHARS_3 + 
__RANDOM_CHARS_4) * 2)
config: SpamAssassin failed to parse line, skipping: - ((__HTMLCOMMENT + 
__PATHNAME + __GAP_ALPH_L + __GAP_ALPH_R + __GAP_ALPH_B + __GAP_ALPH_D + 
__TXTATTACH + __LISTKEYWORD +
config: SpamAssassin failed to parse line, skipping: HTML_FONT_BIG)*2) - 
__GAP_NOWORD == 6) && ! __HAVE_NOURI
config: SpamAssassin failed to parse line, skipping: E + __GAP_2_CHAR + 
__GAP_3_CHAR + __GAP_4_CHAR + __GAP_5_CHAR + __GAP_6_CHAR + __GAP_7_CHAR + 
__GAP_8_CHAR + __GAP_9_CHAR
config: SpamAssassin failed to parse line, skipping: + __GAP_10_CHAR + 
__GAP_4_WORD + __GAP_5_WORD + __GAP_6_WORDA + __GAP_6_WORDB + __GAP_7_WORDA + 
__GAP_7_WORDB + __GAP_ALPH
config: SpamAssassin failed to parse line, skipping: _C + __GAP_POINT - 
(__SPAMREPORT * 4) + __RANDOM_CHARS_1 + __RANDOM_CHARS_2 + ((__RANDOM_CHARS_3 + 
__RANDOM_CHARS_4) * 2)
config: SpamAssassin failed to parse line, skipping: - ((__HTMLCOMMENT + 
__PATHNAME + __GAP_ALPH_L + __GAP_ALPH_R + __GAP_ALPH_B + __GAP_ALPH_D + 
__TXTATTACH + __LISTKEYWORD +
config: SpamAssassin failed to parse line, skipping: HTML_FONT_BIG)*2) - 
__GAP_NOWORD == 7) && ! __HAVE_NOURI
config: SpamAssassin failed to parse line, skipping: E + __GAP_2_CHAR + 
__GAP_3_CHAR + __GAP_4_CHAR + __GAP_5_CHAR + __GAP_6_CHAR + __GAP_7_CHAR + 
__GAP_8_CHAR + __GAP_9_CHAR
config: SpamAssassin failed to parse line, skipping: + __GAP_10_CHAR + 
__GAP_4_WORD + __GAP_5_WORD + __GAP_6_WORDA + __GAP_6_WORDB + __GAP_7_WORDA + 
__GAP_7_WORDB + __GAP_ALPH
config: SpamAssassin failed to parse line, skipping: _C + __GAP_POINT - 
(__SPAMREPORT * 4) + __RANDOM_CHARS_1 + __RANDOM_CHARS_2 + ((__RANDOM_CHARS_3 + 
__RANDOM_CHARS_4) * 2)
config: SpamAssassin failed to parse line, skipping: - ((__HTMLCOMMENT + 
__PATHNAME + __GAP_ALPH_L + __GAP_ALPH_R + __GAP_ALPH_B + __GAP_ALPH_D + 
__TXTATTACH + __LISTKEYWORD +
config: SpamAssassin failed to parse line, skipping: HTML_FONT_BIG)*2) - 
__GAP_NOWORD == 8) && ! __HAVE_NOURI
config: SpamAssassin failed to parse line, skipping: E + __