Re: Negative lookbehind lint issues

2018-08-31 Thread Olivier Coutu
You are correct Pedro, the curly-braces solution does work. I will 
integrate the solution, I leave it to you guys to determine if a bug 
should be opened and with whom.


On 2018-08-31 15:01, Pedro David Marco wrote:

It works with Perl 5.14.2 but not with 5.20.2

It seems that Perl preprocessor does something with repeated chars 
before the regex engine that makes it consider it wrongly


if i change ss for s{2} like this:
body    __Z_NEGATIVE_LOOKBEHIND  /(?

Re: Negative lookbehind lint issues

2018-08-31 Thread Pedro David Marco
It works with Perl 5.14.2 but not with 5.20.2
It seems that Perl preprocessor does something with repeated chars before the 
regex engine that makes it consider it wrongly
if i change ss for s{2} like this:
body    __Z_NEGATIVE_LOOKBEHIND  /(?On Friday, August 31, 2018, 4:00:05 PM GMT+2, Olivier Coutu 
 wrote:  >  >I wrote a rule that throws a variable 
length lookbehind error where the lookbehind is fixed length. Here is a MWE:
>body    __Z_NEGATIVE_LOOKBEHIND  /(?
>spamassassin --siteconfigpath=${HOME}/sa-rules/ --lint
>aoû 31 09:53:45.343 [9074] warn: config: invalid regexp for rule 
>__Z_NEGATIVE_LOOKBEHIND: /(?implemented in regex m/(?i)(?The error goes away if I remove the 
>case insensitive, or if I put a character between the two s characters. Using 
>nn instead of ss makes the error go away. The error stays if I add characters 
>before or after the ss. Is there a special non-text signification to the 
>characters ss? Here is my config:
 >SpamAssassin version 3.4.1
 > running on Perl version 5.22.1

 
   

Re: Negative lookbehind lint issues

2018-08-31 Thread Kevin A. McGrail
Likely best to try against svn for 3.4 and trunk where I expect it will
fail and we have to open a bug.

On Fri, Aug 31, 2018, 10:42 RW  wrote:

> On Fri, 31 Aug 2018 09:59:52 -0400
> Olivier Coutu wrote:
>
> > I wrote a rule that throws a /variable length lookbehind/ error where
> > the lookbehind is fixed length. Here is a MWE:
> >
> > body__Z_NEGATIVE_LOOKBEHIND  /(? >
> > spamassassin --siteconfigpath=${HOME}/sa-rules/ --lint
> > aoû 31 09:53:45.343 [9074] warn: config: invalid regexp for rule
> > __Z_NEGATIVE_LOOKBEHIND: /(? > not implemented in regex m/(?i)(?
>
> I get the same, with or without the UTF-8 non-break spaces.
>
>
> > The error goes away if I remove the case insensitive, or if I put a
> > character between the two /s/ characters. Using /nn/ instead of /ss/
> > makes the error go away. The error stays if I add characters before
> > or after the /ss/. Is there a special non-text signification to the
> > characters /ss/?
>
> gnu grep -P doesn't have a problem with it.
>


Re: Negative lookbehind lint issues

2018-08-31 Thread RW
On Fri, 31 Aug 2018 09:59:52 -0400
Olivier Coutu wrote:

> I wrote a rule that throws a /variable length lookbehind/ error where 
> the lookbehind is fixed length. Here is a MWE:
> 
> body    __Z_NEGATIVE_LOOKBEHIND  /(? 
> spamassassin --siteconfigpath=${HOME}/sa-rules/ --lint
> aoû 31 09:53:45.343 [9074] warn: config: invalid regexp for rule
> __Z_NEGATIVE_LOOKBEHIND: /(? not implemented in regex m/(?i)(? The error goes away if I remove the case insensitive, or if I put a 
> character between the two /s/ characters. Using /nn/ instead of /ss/ 
> makes the error go away. The error stays if I add characters before
> or after the /ss/. Is there a special non-text signification to the 
> characters /ss/? 

gnu grep -P doesn't have a problem with it.


Negative lookbehind lint issues

2018-08-31 Thread Olivier Coutu
I wrote a rule that throws a /variable length lookbehind/ error where 
the lookbehind is fixed length. Here is a MWE:


body    __Z_NEGATIVE_LOOKBEHIND  /(?The error goes away if I remove the case insensitive, or if I put a 
character between the two /s/ characters. Using /nn/ instead of /ss/ 
makes the error go away. The error stays if I add characters before or 
after the /ss/. Is there a special non-text signification to the 
characters /ss/? Here is my config:


SpamAssassin version 3.4.1
  running on Perl version 5.22.1




Re: Lint issues

2007-01-27 Thread Matt Kettler
Thomas Bolioli wrote:
> I am running sa w/lint and it never sees the email I am passing to it.
> the cmd line is:
> spamassassin -D --lint < email
> and the output is always:
>
> snip...
> [29845] dbg: check: is spam? score=2.216 required=6
> [29845] dbg: check:
> tests=MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
>
> [29845] dbg: check:
> subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID
>
>
>
> Which leads me to believe the email is not getting read by SA. Any
> thoughts? 
Yes, the email's being ignored.. as it should be here.
> Am I doing this wrong?
You're using --lint, which does not require an input message, but
generates it's own crude message.

--lint is intended to be used by itself to check rule syntax, nothing more.



Re: Lint issues

2007-01-27 Thread Theo Van Dinter
On Sat, Jan 27, 2007 at 03:44:35PM -0500, Thomas Bolioli wrote:
> I am running sa w/lint and it never sees the email I am passing to it.
> the cmd line is:
> spamassassin -D --lint < email
> and the output is always:
> 
> Which leads me to believe the email is not getting read by SA. Any 
> thoughts? Am I doing this wrong?

Yes.  --lint generates a message to use, it's really only meant to look for
config errors.  Remove the "--lint" and it'll run your message though a scan.

-- 
Randomly Selected Tagline:
Welcome to Kyoto -- the anagram lover's Tokyo.
 - Futurama, "Crimes of the Hot"


pgpyLb3YAsFIv.pgp
Description: PGP signature


Lint issues

2007-01-27 Thread Thomas Bolioli

I am running sa w/lint and it never sees the email I am passing to it.
the cmd line is:
spamassassin -D --lint < email
and the output is always:

snip...
[29845] dbg: check: is spam? score=2.216 required=6
[29845] dbg: check: 
tests=MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAME,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
[29845] dbg: check: 
subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID



Which leads me to believe the email is not getting read by SA. Any 
thoughts? Am I doing this wrong?

Tom


Re: Lint issues

2005-10-23 Thread The Doctor
On Sun, Oct 23, 2005 at 01:09:25PM -0700, Robert Menschel wrote:
> Hello The,
> 
> Sunday, October 23, 2005, 5:54:05 AM, you wrote:
> 
> TD> I am using rules du Jour and now I am getting
> 
> TD> ...
> The basic local.cf errors have already been answered.
> TD> [2136] warn: config: warning: score set for non-existent rule 
> FUZZY_GUARANTEE
> TD> ...
> 
> The FUZZY_xxx rules are new with SA 3.1.0 -- it looks like you've
> somehow managed to include the scores file for these rules, but not
> the primary rules file.  Your installation seems to be incomplete.
> 
> If you've done anything to redirect/misdirect those rules files, undo
> that damage.  If not, then try to reinstall and make sure you have no
> errors during that install. 
> 
> Bob Menschel
> 
>

The reinstall did the trick.
 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

-- 
Member - Liberal International  
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Satan uses Republicanism to lead you away from the true path

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Lint issues

2005-10-23 Thread Theo Van Dinter
On Sun, Oct 23, 2005 at 10:16:33PM +0200, Raymond Dijkxhoorn wrote:
> On one of my systems i had the saem, and this was solved by enabling the 
> right modules in de init.pre.

Hrm.  Can you open up a bugzilla ticket about this?  The FUZZY_* rule
scores are supposed to be wrapped in "ifplugin" checks, but aren't for
some reason.  :(

Thanks.

-- 
Randomly Generated Tagline:
"We study the way to protect rather than destroy. Avoid rather than check;
 check rather than hurt; hurt rather than maim; maim rather than kill; for 
 all life is precious, nor can any be replaced"  - Shaolin code


pgpOrncCFTqJT.pgp
Description: PGP signature


Re: Lint issues

2005-10-23 Thread Raymond Dijkxhoorn

Hi!


TD> [2136] warn: config: warning: score set for non-existent rule 
FUZZY_GUARANTEE
TD> ...

The FUZZY_xxx rules are new with SA 3.1.0 -- it looks like you've
somehow managed to include the scores file for these rules, but not
the primary rules file.  Your installation seems to be incomplete.

If you've done anything to redirect/misdirect those rules files, undo
that damage.  If not, then try to reinstall and make sure you have no
errors during that install.


On one of my systems i had the saem, and this was solved by enabling the 
right modules in de init.pre.


Bye,
Raymond.


Re: Lint issues

2005-10-23 Thread Robert Menschel
Hello The,

Sunday, October 23, 2005, 5:54:05 AM, you wrote:

TD> I am using rules du Jour and now I am getting

TD> ...
The basic local.cf errors have already been answered.
TD> [2136] warn: config: warning: score set for non-existent rule 
FUZZY_GUARANTEE
TD> ...

The FUZZY_xxx rules are new with SA 3.1.0 -- it looks like you've
somehow managed to include the scores file for these rules, but not
the primary rules file.  Your installation seems to be incomplete.

If you've done anything to redirect/misdirect those rules files, undo
that damage.  If not, then try to reinstall and make sure you have no
errors during that install. 

Bob Menschel





Re: Lint issues

2005-10-23 Thread The Doctor
On Sun, Oct 23, 2005 at 09:57:30AM -0400, JamesDR wrote:
> defang_mime - just remove it
> report_header - use add_header
> use_terse_report - again, use add_header
> detailed_phrase_score - not sure
> spam_level_stars - use add_header
> pyzor_add_header - not sure
> 
> -- 
> Thanks,
> JamesDR


Got you, still, I prefer to have a defang mime feature.

-- 
Member - Liberal International  
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Satan uses Republicanism to lead you away from the true path

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Lint issues

2005-10-23 Thread JamesDR

The Doctor wrote:

On Sun, Oct 23, 2005 at 07:28:50AM -0600, The Doctor wrote:


On Sun, Oct 23, 2005 at 09:05:31AM -0400, RoNNY wrote:


On 10/23/05, The Doctor <[EMAIL PROTECTED]> wrote:



[2136] warn: lint: 43 issues detected, please rerun with debug enabled for more 
information


The last line of your log gives a pretty good idea as to what you
should do next...

-RoNNY



Which logs?




Further:


Script started on Sun Oct 23 07:37:46 2005
doctor.nl2k.ab.ca/~$spamassassin --debug --lint
[11675] dbg: logger: adding facilities: all
[11675] dbg: logger: logging level is DBG
[11675] dbg: generic: SpamAssassin version 3.1.0
[11675] dbg: config: score set 0 chosen.
[11675] dbg: util: running in taint mode? yes
[11675] dbg: util: taint mode: deleting unsafe environment variables, resetting 
PATH
[11675] dbg: util: PATH included '.', which is not absolute, dropping
[11675] dbg: util: PATH included '.', which is not absolute, dropping
[11675] dbg: util: PATH included '/usr/bin', keeping
[11675] dbg: util: PATH included '/usr/X11/bin', keeping
[11675] dbg: util: PATH included '/usr/local/bin', keeping
[11675] dbg: util: PATH included '/usr/sbin', keeping
[11675] dbg: util: PATH included '/bin', keeping
[11675] dbg: util: PATH included '/usr/bin', keeping
[11675] dbg: util: PATH included '/usr/sbin', keeping
[11675] dbg: util: PATH included '/sbin', keeping
[11675] dbg: util: PATH included '/usr/games', keeping
[11675] dbg: util: PATH included '/usr/X11/bin', keeping
[11675] dbg: util: PATH included '/usr/contrib/bin', keeping
[11675] dbg: util: final PATH set to: 
/usr/bin:/usr/X11/bin:/usr/local/bin:/usr/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/games:/usr/X11/bin:/usr/contrib/bin
[11675] dbg: dns: is Net::DNS::Resolver available? yes
[11675] dbg: dns: Net::DNS version: 0.49
[11675] dbg: dns: name server: 204.209.81.1, family: 2, ipv6: 0
[11675] dbg: diag: perl platform: 5.008007 bsdos
[11675] dbg: diag: module installed: Digest::SHA1, version 2.10
[11675] dbg: diag: module installed: MIME::Base64, version 3.05
[11675] dbg: diag: module installed: HTML::Parser, version 3.45
[11675] dbg: diag: module installed: DB_File, version 1.811
[11675] dbg: diag: module installed: Net::DNS, version 0.49
[11675] dbg: diag: module installed: Net::SMTP, version 2.29
[11675] dbg: diag: module installed: Mail::SPF::Query, version 1.997
[11675] dbg: diag: module installed: IP::Country::Fast, version 309.002
[11675] dbg: diag: module installed: Razor2::Client::Agent, version 2.72
[11675] dbg: diag: module installed: Net::Ident, version 1.20
[11675] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[11675] dbg: diag: module installed: IO::Socket::SSL, version 0.96
[11675] dbg: diag: module installed: Time::HiRes, version 1.66
[11675] dbg: diag: module installed: DBI, version 1.48
[11675] dbg: diag: module installed: Getopt::Long, version 2.34
[11675] dbg: diag: module installed: LWP::UserAgent, version 2.032
[11675] dbg: diag: module installed: HTTP::Date, version 1.46
[11675] dbg: diag: module installed: Archive::Tar, version 1.24
[11675] dbg: diag: module installed: IO::Zlib, version 1.01
[11675] dbg: ignore: using a test message to lint rules
[11675] dbg: config: using "/usr/contrib/etc/mail/spamassassin" for site rules 
pre files
[11675] dbg: config: read file /usr/contrib/etc/mail/spamassassin/init.pre
[11675] dbg: config: read file /usr/contrib/etc/mail/spamassassin/v310.pre
[11675] dbg: config: using "/usr/contrib/share/spamassassin" for sys rules pre 
files
[11675] dbg: config: using "/usr/contrib/share/spamassassin" for default rules 
dir
[11675] dbg: config: read file /usr/contrib/share/spamassassin/10_misc.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_advance_fee.cf
[11675] dbg: config: read file 
/usr/contrib/share/spamassassin/20_anti_ratware.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_body_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_compensate.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_dnsbl_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_drugs.cf
[11675] dbg: config: read file 
/usr/contrib/share/spamassassin/20_fake_helo_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_head_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_html_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_meta_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_net_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_phrases.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_porn.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_ratware.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_uri_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/23_bayes.cf
[11675] dbg: config: read file /usr/contrib/sh

Re: Lint issues

2005-10-23 Thread The Doctor
On Sun, Oct 23, 2005 at 07:28:50AM -0600, The Doctor wrote:
> On Sun, Oct 23, 2005 at 09:05:31AM -0400, RoNNY wrote:
> > On 10/23/05, The Doctor <[EMAIL PROTECTED]> wrote:
> > 
> > > [2136] warn: lint: 43 issues detected, please rerun with debug enabled 
> > > for more information
> > 
> > The last line of your log gives a pretty good idea as to what you
> > should do next...
> > 
> > -RoNNY
> >
> 
> Which logs?
>  

Further:


Script started on Sun Oct 23 07:37:46 2005
doctor.nl2k.ab.ca/~$spamassassin --debug --lint
[11675] dbg: logger: adding facilities: all
[11675] dbg: logger: logging level is DBG
[11675] dbg: generic: SpamAssassin version 3.1.0
[11675] dbg: config: score set 0 chosen.
[11675] dbg: util: running in taint mode? yes
[11675] dbg: util: taint mode: deleting unsafe environment variables, resetting 
PATH
[11675] dbg: util: PATH included '.', which is not absolute, dropping
[11675] dbg: util: PATH included '.', which is not absolute, dropping
[11675] dbg: util: PATH included '/usr/bin', keeping
[11675] dbg: util: PATH included '/usr/X11/bin', keeping
[11675] dbg: util: PATH included '/usr/local/bin', keeping
[11675] dbg: util: PATH included '/usr/sbin', keeping
[11675] dbg: util: PATH included '/bin', keeping
[11675] dbg: util: PATH included '/usr/bin', keeping
[11675] dbg: util: PATH included '/usr/sbin', keeping
[11675] dbg: util: PATH included '/sbin', keeping
[11675] dbg: util: PATH included '/usr/games', keeping
[11675] dbg: util: PATH included '/usr/X11/bin', keeping
[11675] dbg: util: PATH included '/usr/contrib/bin', keeping
[11675] dbg: util: final PATH set to: 
/usr/bin:/usr/X11/bin:/usr/local/bin:/usr/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/games:/usr/X11/bin:/usr/contrib/bin
[11675] dbg: dns: is Net::DNS::Resolver available? yes
[11675] dbg: dns: Net::DNS version: 0.49
[11675] dbg: dns: name server: 204.209.81.1, family: 2, ipv6: 0
[11675] dbg: diag: perl platform: 5.008007 bsdos
[11675] dbg: diag: module installed: Digest::SHA1, version 2.10
[11675] dbg: diag: module installed: MIME::Base64, version 3.05
[11675] dbg: diag: module installed: HTML::Parser, version 3.45
[11675] dbg: diag: module installed: DB_File, version 1.811
[11675] dbg: diag: module installed: Net::DNS, version 0.49
[11675] dbg: diag: module installed: Net::SMTP, version 2.29
[11675] dbg: diag: module installed: Mail::SPF::Query, version 1.997
[11675] dbg: diag: module installed: IP::Country::Fast, version 309.002
[11675] dbg: diag: module installed: Razor2::Client::Agent, version 2.72
[11675] dbg: diag: module installed: Net::Ident, version 1.20
[11675] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[11675] dbg: diag: module installed: IO::Socket::SSL, version 0.96
[11675] dbg: diag: module installed: Time::HiRes, version 1.66
[11675] dbg: diag: module installed: DBI, version 1.48
[11675] dbg: diag: module installed: Getopt::Long, version 2.34
[11675] dbg: diag: module installed: LWP::UserAgent, version 2.032
[11675] dbg: diag: module installed: HTTP::Date, version 1.46
[11675] dbg: diag: module installed: Archive::Tar, version 1.24
[11675] dbg: diag: module installed: IO::Zlib, version 1.01
[11675] dbg: ignore: using a test message to lint rules
[11675] dbg: config: using "/usr/contrib/etc/mail/spamassassin" for site rules 
pre files
[11675] dbg: config: read file /usr/contrib/etc/mail/spamassassin/init.pre
[11675] dbg: config: read file /usr/contrib/etc/mail/spamassassin/v310.pre
[11675] dbg: config: using "/usr/contrib/share/spamassassin" for sys rules pre 
files
[11675] dbg: config: using "/usr/contrib/share/spamassassin" for default rules 
dir
[11675] dbg: config: read file /usr/contrib/share/spamassassin/10_misc.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_advance_fee.cf
[11675] dbg: config: read file 
/usr/contrib/share/spamassassin/20_anti_ratware.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_body_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_compensate.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_dnsbl_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_drugs.cf
[11675] dbg: config: read file 
/usr/contrib/share/spamassassin/20_fake_helo_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_head_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_html_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_meta_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_net_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_phrases.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_porn.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_ratware.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/20_uri_tests.cf
[11675] dbg: config: read file /usr/contrib/share/spamassassin/23_bayes.cf
[11675] dbg: config: rea

Re: Lint issues

2005-10-23 Thread The Doctor
On Sun, Oct 23, 2005 at 09:05:31AM -0400, RoNNY wrote:
> On 10/23/05, The Doctor <[EMAIL PROTECTED]> wrote:
> 
> > [2136] warn: lint: 43 issues detected, please rerun with debug enabled for 
> > more information
> 
> The last line of your log gives a pretty good idea as to what you
> should do next...
> 
> -RoNNY
>

Which logs?
 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 

-- 
Member - Liberal International  
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Satan uses Republicanism to lead you away from the true path

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Lint issues

2005-10-23 Thread RoNNY
On 10/23/05, The Doctor <[EMAIL PROTECTED]> wrote:

> [2136] warn: lint: 43 issues detected, please rerun with debug enabled for 
> more information

The last line of your log gives a pretty good idea as to what you
should do next...

-RoNNY


Re: lint: issues detected - where?

2005-04-07 Thread Dermot Paikkos
Excellent - big typo in my meta rule. 

I had spelt BAYES as BAYNES.
Thanx Anthony.
Dp.


On 7 Apr 2005 at 13:39, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I think your problems lie here:
> 
> 
> 
> warning: description exists for non-existent rule
> ANTI_BAYES_SPAMCOP_00 warning: description exists for non-existent
> rule ANTI_BAYES_SPAMCOP_40 warning: description exists for
> non-existent rule ANTI_BAYES_SPAMCOP_05 warning: description exists
> for non-existent rule ANTI_BAYES_SPAMCOP_20 warning: score set for
> non-existent rule ANTI_BAYES_SPAMCOP_00 warning: score set for
> non-existent rule ANTI_BAYES_SPAMCOP_40 warning: score set for
> non-existent rule ANTI_BAYES_SPAMCOP_05 warning: score set for
> non-existent rule ANTI_BAYES_SPAMCOP_20 
> 
> 
> 
> -- 
> Anthony Peacock   
> CHIME, Royal Free & University College Medical School
> WWW:http://www.chime.ucl.ac.uk/~rmhiajp/
> I'm in shape. - ROUND is a shape.
> 
> 
> 



Re: lint: issues detected - where?

2005-04-07 Thread a . peacock
Hi,

I think your problems lie here:



warning: description exists for non-existent rule ANTI_BAYES_SPAMCOP_00 
warning: description exists for non-existent rule 
ANTI_BAYES_SPAMCOP_40
warning: description exists for non-existent rule 
ANTI_BAYES_SPAMCOP_05
warning: description exists for non-existent rule 
ANTI_BAYES_SPAMCOP_20
warning: score set for non-existent rule ANTI_BAYES_SPAMCOP_00 
warning: score set for non-existent rule ANTI_BAYES_SPAMCOP_40 
warning: score set for non-existent rule ANTI_BAYES_SPAMCOP_05 
warning: score set for non-existent rule ANTI_BAYES_SPAMCOP_20 



-- 
Anthony Peacock   
CHIME, Royal Free & University College Medical School
WWW:http://www.chime.ucl.ac.uk/~rmhiajp/
I'm in shape. - ROUND is a shape.




lint: issues detected - where?

2005-04-07 Thread Dermot Paikkos
hi,

SA 3.0.0 with exim-acl

I ran spamassassin -D --lint after making a change to the local.cf 
and noticed the following:

debug: 
tests=ALL_TRUSTED,BAYES_40,MISSING_HEADERS,MISSING_SUBJECT,NO_REAL_NAM
E
debug: 
subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__SANE_MSGID,__
UNUSABLE_MSGID
lint: 8 issues detected.  please rerun with debug enabled for more 
information.


I am trying to find the issues but am not getting very far. I noticed 
the following that might account for 3 issues 

debug: diag: module not installed: Net::LDAP ('require' failed)
debug: diag: module not installed: Razor2::Client::Agent ('require' 
failed)
debug: diag: module not installed: URI ('require' failed)

I am not sure why URI is failing as it is installed and mails do get 
tagged with "3.5 URIBL_OB_SURBL"  etc. The other modules I am not 
using.

Can anyone help me try an locate the other errors? I have tried to 
pass mails to SA with:
>spamassassin -D < testmail 
but I am not getting an more feedback than I would with lint. I have 
put the complete output below.

Thanx.
DP.

debug: SpamAssassin version 3.0.0
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting 
PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/opt/www/htdig/bin', keeping.
debug: PATH included '/usr/lib/java/bin', keeping.
debug: PATH included '/usr/lib/java/jre/bin', keeping.
debug: PATH included '/opt/kde/bin', keeping.
debug: PATH included '/usr/lib/qt-3.2.1/bin', keeping.
debug: PATH included '/usr/share/texmf/bin', keeping.
debug: Final PATH set to: 
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R
6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jr
e/bin:/opt/kde/bin:/usr/lib/qt-3.2.1/bin:/usr/share/texmf/bin
debug: diag: module installed: DBI, version 1.37
debug: diag: module installed: DB_File, version 1.804
debug: diag: module installed: Digest::SHA1, version 2.10
debug: diag: module installed: IO::Socket::UNIX, version 1.2
debug: diag: module installed: MIME::Base64, version 3.05
debug: diag: module installed: Net::DNS, version 0.48
debug: diag: module not installed: Net::LDAP ('require' failed)
debug: diag: module not installed: Razor2::Client::Agent ('require' 
failed)
debug: diag: module installed: Storable, version 2.04
debug: diag: module not installed: URI ('require' failed)
debug: ignore: using a test message to lint rules
debug: using "/etc/mail/spamassassin/init.pre" for site rules 
init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file 
/usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: config: read file 
/usr/share/spamassassin/70_sare_bayes_poison_nxm.cf
debug: config: read file /usr/share/spamassassin/70_sare_oem.cf
debug: config: read file 
/usr/share/spamassassin/99_sare_fraud_post25x.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/anti_bayes.cf
debug: config: read file /etc/mail/spamassassin/bigevil.cf
debug: config: read file /et