You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Marcos Manhanes <mm...@sucden.com.br> on 2006/02/13 15:15:21 UTC
(Unknown)
Hello for all,
My SpamAssassin show me this messages somebody that means it ?
[10272] warn: Argument "n.nn" isn't numeric in addition (+) at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
[10272] warn: Argument "n.nn" isn't numeric in addition (+) at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
[10272] warn: Argument "n.nn" isn't numeric in addition (+) at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
[10272] warn: Argument "n.nn" isn't numeric in addition (+) at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
Thanks a lot,
Marcos Manhanes
Sucden do Brasil Ltda
Tel: (5511) 5501-1436
Fax: (5511) 5501-1401
mmanhanes@sucden.com.br
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
Re: RES:
Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
Matt Kettler wrote:
> Marcos Manhanes wrote:
> Also, I don't even know what version of SpamAssassin you are using. All
> of my advice is assuming you are using SA 3.1.0.
Gotta be SA 3.1.0. 3.0 and trunk moves that code a bit.
> You can start by finding all your "score" commands.
>
> grep score /etc/mail/spamassassin/*
> grep score ~/.spamassassin/user_prefs
>
> Odds are very good the problem should be obvious. The format should be
> one of these two:
>
> score RULE_NAME #
>
> or
>
> score RULE_NAME # # # #
>
> Looking at the code of line 251 of Conf.pm, the botched line is
> definitely not one of the four-score versions.
>
> My guess is you have a line that's either missing the numbers, or has a
> letter "o" instead of a number 0.
It's actually a score line that contains "n.nn" like in the perldoc,
such as "score RULE_NAME n.nn".
Daryl
Re: RES:
Posted by Matt Kettler <mk...@comcast.net>.
Marcos Manhanes wrote:
> Can you help me to fix it
>
Well, I can't help you without seeing the problem..
Also, I don't even know what version of SpamAssassin you are using. All
of my advice is assuming you are using SA 3.1.0.
You can start by finding all your "score" commands.
grep score /etc/mail/spamassassin/*
grep score ~/.spamassassin/user_prefs
Odds are very good the problem should be obvious. The format should be
one of these two:
score RULE_NAME #
or
score RULE_NAME # # # #
Looking at the code of line 251 of Conf.pm, the botched line is
definitely not one of the four-score versions.
My guess is you have a line that's either missing the numbers, or has a
letter "o" instead of a number 0.
Re: RES: RES:
Posted by Loren Wilton <lw...@earthlink.net>.
> But I think that some times ago I got some rules and when I made
> upgrade to new version it stop to worked.
>
> 20_porn.cf
> bogus-virus-warnings.cf
> chickenpox.cf
> evilrules.cf local.cf-new
> antidrug.cf br_rules.cf
> DomainDigits1.cf
> viruses.cf
Many of these are common files. Unless they have been corrupted they should
not be problems:
> bogus-virus-warnings.cf
> chickenpox.cf
> antidrug.cf
> DomainDigits1.cf
These are much less common files. There could be a problem in one of these:
> 20_porn.cf
> evilrules.cf
> local.cf-new
> br_rules.cf
> viruses.cf
I would expect a grep for /n.nn/ to show up in one of these.
Loren
BTW, if you are using 3.x, you should NOT be using antidrug.cf. It is
already built into SA.
Re: RES: RES: RES:
Posted by Matt Kettler <mk...@evi-inc.com>.
Marcos Manhanes wrote:
> When I made it command not show nothing.
>
> But I think that some times ago I got some rules and when I made
> upgrade to new version it stop to worked.
>
> Did you see it's rules ?
>
> 20_porn.cf
> bogus-virus-warnings.cf
> chickenpox.cf
> evilrules.cf local.cf-new
> antidrug.cf br_rules.cf
> DomainDigits1.cf
> viruses.cf
You definitely should delete antidrug.cf. Antidrug is only intended for users of
SA 2.6x and older. These rules are built-in to SA 3.0.0 and higher, so by adding
antidrug you could be downgrading your config if the SA main-line ever improves
or tweaks these rules.
For reference, I am the author of antidrug.cf, so I speak with at least some
authority about it.
I can't really speak for the other rule files, but you might want to try moving
them all out of the directory and adding them back one at a time to see which
one triggers the problem.
RES: RES: RES:
Posted by Marcos Manhanes <mm...@sucden.com.br>.
When I made it command not show nothing.
But I think that some times ago I got some rules and when I made
upgrade to new version it stop to worked.
Did you see it's rules ?
20_porn.cf
bogus-virus-warnings.cf
chickenpox.cf
evilrules.cf local.cf-new
antidrug.cf br_rules.cf
DomainDigits1.cf
viruses.cf
I removed it for to try fix the problem.
-----Mensagem original-----
De: Matt Kettler [mailto:mkettler@evi-inc.com]
Enviada em: segunda-feira, 13 de fevereiro de 2006 15:19
Para: Marcos Manhanes; users@spamassassin.apache.org
Assunto: Re: RES: RES:
Marcos Manhanes wrote:
Actually, to be more specific, you need to find a score statement which
literally has "n.nn" in it instead of an actual score.
I'd venture to guess someone copy-pasted *directly* out of the manpage.
grep score /etc/mail/spamassassin/*.cf |grep "n\.nn"
grep score ~/.spamassassin/user_prefs |grep "n\.nn"
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
Re: RES: RES:
Posted by Matt Kettler <mk...@evi-inc.com>.
Marcos Manhanes wrote:
Actually, to be more specific, you need to find a score statement which
literally has "n.nn" in it instead of an actual score.
I'd venture to guess someone copy-pasted *directly* out of the manpage.
grep score /etc/mail/spamassassin/*.cf |grep "n\.nn"
grep score ~/.spamassassin/user_prefs |grep "n\.nn"
Re: RES: RES:
Posted by Matt Kettler <mk...@evi-inc.com>.
Marcos Manhanes wrote:
> It information arrived to you ?
I don't need your conf.pm. That just proves my assumption about your version was
correct.
I need your score statements from your config files.
I need the output of these two commands:
grep score /etc/mail/spamassassin/*
grep score ~/.spamassassin/user_prefs
>
> ###### Conf.pm #################
<snip>.
>
>
> -----Mensagem original-----
> De: Matt Kettler [mailto:mkettler@evi-inc.com]
> Enviada em: segunda-feira, 13 de fevereiro de 2006 14:13
> Para: Marcos Manhanes
> Cc: spamassassin-users@incubator.apache.org
> Assunto: Re: RES:
>
>
> Marcos Manhanes wrote:
>> Friends,
>>
>> I'm running SpamAssassin version 3.1.0 with Perl version 5.8.0.
>>
>> It's a copy of the file Conf.pm
>
> Ok, so it's DEFINITELY a score command.. So follow my advice with the grep
> statements from the previous email I posted from my comcast.net account.
>
Re: RES: RES:
Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
Marcos Manhanes wrote:
> It information arrived to you ?
It did, twice.
Now do what Matt said and grep for n.nn in your config files, probably
in /etc/mail/spamassassin
Daryl
RES: RES:
Posted by Marcos Manhanes <mm...@sucden.com.br>.
It information arrived to you ?
###### Conf.pm #################
245 # Set the actual scoreset values appropriately
246 for my $index (0..3) {
247 my $score = $relative ?
248 $self->{scoreset}->[$index]->{$rule} + $scores[$index] :
249 $scores[$index];
250
251 $self->{scoreset}->[$index]->{$rule} = $score + 0.0;
252 }
253 }
254 else {
255 my $msg = "config: score configuration option without actual
scores, skipping: $line";
256
257 if ($self->{lint_rules}) {
258 warn $msg."\n";
259 } else {
260 info($msg);
261 }
262 $self->{errors}++;
263 return $MISSING_REQUIRED_VALUE;
264 }
265 }
266 });
267
###################################
-----Mensagem original-----
De: Matt Kettler [mailto:mkettler@evi-inc.com]
Enviada em: segunda-feira, 13 de fevereiro de 2006 14:13
Para: Marcos Manhanes
Cc: spamassassin-users@incubator.apache.org
Assunto: Re: RES:
Marcos Manhanes wrote:
> Friends,
>
> I'm running SpamAssassin version 3.1.0 with Perl version 5.8.0.
>
> It's a copy of the file Conf.pm
Ok, so it's DEFINITELY a score command.. So follow my advice with the grep
statements from the previous email I posted from my comcast.net account.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
Re: RES:
Posted by Matt Kettler <mk...@evi-inc.com>.
Marcos Manhanes wrote:
> Friends,
>
> I'm running SpamAssassin version 3.1.0 with Perl version 5.8.0.
>
> It's a copy of the file Conf.pm
Ok, so it's DEFINITELY a score command.. So follow my advice with the grep
statements from the previous email I posted from my comcast.net account.
RES:
Posted by Marcos Manhanes <mm...@sucden.com.br>.
Friends,
I'm running SpamAssassin version 3.1.0 with Perl version 5.8.0.
It's a copy of the file Conf.pm
###### Conf.pm #################
245 # Set the actual scoreset values appropriately
246 for my $index (0..3) {
247 my $score = $relative ?
248 $self->{scoreset}->[$index]->{$rule} + $scores[$index] :
249 $scores[$index];
250
251 $self->{scoreset}->[$index]->{$rule} = $score + 0.0;
252 }
253 }
254 else {
255 my $msg = "config: score configuration option without actual
scores, skipping: $line";
256
257 if ($self->{lint_rules}) {
258 warn $msg."\n";
259 } else {
260 info($msg);
261 }
262 $self->{errors}++;
263 return $MISSING_REQUIRED_VALUE;
264 }
265 }
266 });
267
###################################
-----Mensagem original-----
De: Ed Russell [mailto:ed.russell@hardsoftsystems.com]
Enviada em: segunda-feira, 13 de fevereiro de 2006 12:30
Para: spamassassin-users@incubator.apache.org
Assunto: RE:
Have you tried to lint your rules?
---------------------------------------------------
Talk is cheap since supply always exceeds demand.
---------------------------------------------------
-----Original Message-----
From: Marcos Manhanes [mailto:mmanhanes@sucden.com.br]
Sent: Monday, February 13, 2006 9:53 AM
To: 'Matt Kettler'
Cc: spamassassin-users@incubator.apache.org
Subject: RES:
Can you help me to fix it ?
-----Mensagem original-----
De: Matt Kettler [mailto:mkettler_sa@comcast.net]
Enviada em: segunda-feira, 13 de fevereiro de 2006 10:38
Para: Marcos Manhanes
Cc: spamassassin-users@incubator.apache.org
Assunto: Re:
Marcos Manhanes wrote:
> Hello for all,
>
> My SpamAssassin show me this messages somebody that means it ?
>
> [10272] warn: Argument "n.nn" isn't numeric in addition (+) at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
>
Generally that means you've got a configuration option which needs to be
numeric, but isn't.
In this case it appears to be a botched "score" command.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
RE:
Posted by Ed Russell <ed...@hardsoftsystems.com>.
Have you tried to lint your rules?
---------------------------------------------------
Talk is cheap since supply always exceeds demand.
---------------------------------------------------
-----Original Message-----
From: Marcos Manhanes [mailto:mmanhanes@sucden.com.br]
Sent: Monday, February 13, 2006 9:53 AM
To: 'Matt Kettler'
Cc: spamassassin-users@incubator.apache.org
Subject: RES:
Can you help me to fix it ?
-----Mensagem original-----
De: Matt Kettler [mailto:mkettler_sa@comcast.net]
Enviada em: segunda-feira, 13 de fevereiro de 2006 10:38
Para: Marcos Manhanes
Cc: spamassassin-users@incubator.apache.org
Assunto: Re:
Marcos Manhanes wrote:
> Hello for all,
>
> My SpamAssassin show me this messages somebody that means it ?
>
> [10272] warn: Argument "n.nn" isn't numeric in addition (+) at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
>
Generally that means you've got a configuration option which needs to be
numeric, but isn't.
In this case it appears to be a botched "score" command.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
RES:
Posted by Marcos Manhanes <mm...@sucden.com.br>.
Can you help me to fix it ?
-----Mensagem original-----
De: Matt Kettler [mailto:mkettler_sa@comcast.net]
Enviada em: segunda-feira, 13 de fevereiro de 2006 10:38
Para: Marcos Manhanes
Cc: spamassassin-users@incubator.apache.org
Assunto: Re:
Marcos Manhanes wrote:
> Hello for all,
>
> My SpamAssassin show me this messages somebody that means it ?
>
> [10272] warn: Argument "n.nn" isn't numeric in addition (+) at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
>
Generally that means you've got a configuration option which needs to be
numeric, but isn't.
In this case it appears to be a botched "score" command.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.5/256 - Release Date: 10/2/2006
Re:
Posted by Matt Kettler <mk...@comcast.net>.
Marcos Manhanes wrote:
> Hello for all,
>
> My SpamAssassin show me this messages somebody that means it ?
>
> [10272] warn: Argument "n.nn" isn't numeric in addition (+) at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm line 251.
>
Generally that means you've got a configuration option which needs to be
numeric, but isn't.
In this case it appears to be a botched "score" command.