You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Matt Kettler <mk...@evi-inc.com> on 2004/12/02 23:53:19 UTC

Re: lint failed

What version of SA are you using?

  That rule will only work under SA 3.0.x. It's not compatible with earlier 
versions, including SA 2.6x with the SpamCopURI patch.

If you're using 3.x, make sure you've got the URIDNSBL plugin loaded and 
working in the first place before you add the JP rule.

For safety you can surround that rule with an ifplugin statement:


         ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
         urirhssub URIBL_JP_SURBL  multi.surbl.org.        A   64
         body      URIBL_JP_SURBL  eval:check_uridnsbl('URIBL_JP_SURBL')
         describe  URIBL_JP_SURBL  Has URI in JP at 
http://www.surbl.org/lists.html
         tflags    URIBL_JP_SURBL  net

         score URIBL_JP_SURBL    4.0
         endif   # Mail::SpamAssassin::Plugin::URIDNSBL

That way if the plugin isn't loaded, the rule will be skipped entirely, 
just like the other URIBL rules.

At 05:24 PM 12/2/2004, Andrew Xiang wrote:
>  spamassassin --lint
>config: SpamAssassin failed to parse line, skipping: urirhssub
>URIBL_JP_SURBL  multi.surbl.org.        A   64
>Failed to run URIBL_JP_SURBL SpamAssassin test, skipping:
>         (Can't locate object method "check_uridnsbl" via package
>"Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load
>"Mail::SpamAssassin::PerMsgStatus"?) at
>/usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line
>2296.
>)
>lint: 2 issues detected.  please rerun with debug enabled for more
>information.
>
>
>local.cf:
>
>
>urirhssub URIBL_JP_SURBL  multi.surbl.org.        A   64
>body      URIBL_JP_SURBL  eval:check_uridnsbl('URIBL_JP_SURBL')
>describe  URIBL_JP_SURBL  Has URI in JP at http://www.surbl.org/lists.html
>tflags    URIBL_JP_SURBL  net
>
>score URIBL_JP_SURBL    4.0