You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by BG Mahesh <bg...@indiainfo.com> on 2006/01/28 06:00:24 UTC

How to fix the SA lint errors?

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 + __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 >= 9) && ! __HAVE_NOURI
config: SpamAssassin failed to parse line, skipping: GLE_TABLE_U + __SINGLE_TABLE_W + __SINGLE_TABLE_P >= 2)
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
config: SpamAssassin failed to parse line, skipping: blocklist
Failed to run meta SpamAssassin tests, skipping some: syntax error at (eval 53) line 325, near ") {"
syntax error at (eval 53) line 349, near "> ) "
syntax error at (eval 53) line 354, near "> ) "

lint: 47 issues detected.  please rerun with debug enabled for more information.


--
B.G. Mahesh



-- 
______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Re: How to fix the SA lint errors?

Posted by Matt Kettler <mk...@evi-inc.com>.
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.

> 
> 
>