Just use the SMTP Connection screen - are the connection sorted by the
active time?
There the same sort is used!
Thomas
Wim Borghs <wim.borghs@...>
27.03.2009 12:17
Bitte antworten an
ASSP development mailing list <assp-test@...>
An
ASSP development mailing list <assp-test@...>
Kopie
Thema
Re: [Assp-test] Antwort: absurd misclassifications by bayesian check
>
> 2009/3/27 Thomas Eckardt/eck <Thomas.Eckardt@...>
> So assuming that
> @t=sort {abs($b-.5)<=>abs($a-.5)} @t;
> is not working well ?
>
That's correct, as unbelievable as it may seem.
Incorrect sorting results in not picking the most interesting features of
the mail to base the bayesian analysis on, so the result is less reliable.
We use the bayesian confidence safeguard against doubtful spam/ham
classifications so we see more cases regarded as doubtful resulting in
more
mails sent through with the subject tagged as [spam?].
Maybe sort has issues when:
- sort is called with a block defining the sort-order (using $a and $b)
- and threading is used
- and $a or $b variables are used elsewhere in the program?
I tried this patch as an attempt to resolve the issue but to no avail:
@@ -8411 +8411 @@
- foreach $a (split(/\|/,$_[0])) {
+ foreach my $a (split(/\|/,$_[0])) {
@@ -8464 +8464 @@
- foreach $a (split(/\|/,$_[0])) {
+ foreach my $a (split(/\|/,$_[0])) {
@@ -8486 +8486 @@
- foreach $a (split(/\|/,$_[0])) {
+ foreach my $a (split(/\|/,$_[0])) {
@@ -9691 +9691 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9699 +9699 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9707 +9707 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9715 +9715 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9742 +9742 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9749 +9749 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9756 +9756 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -9763 +9763 @@
- foreach $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
+ foreach my $a (split(/ /,$this->{rcpt}))
{ListReportExec($a,$this)};
@@ -26116 +26116 @@
- for $a (split(/\|/,$new)) {
+ foreach my $a (split(/\|/,$new)) {
------------------------------------------------------------------------------
_______________________________________________
Assp-test mailing list
Assp-test@...
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
|