Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv16583
Modified Files:
Bayes.pm
Log Message:
fix warning on unclassified message (bug 697278) and save new bucket default parameters
Index: Bayes.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** Bayes.pm 18 Apr 2003 18:58:22 -0000 1.128
--- Bayes.pm 19 Apr 2003 11:07:13 -0000 1.129
***************
*** 340,343 ****
--- 340,352 ----
$self->{colors__}{unclassified} = 'black';
+
+ # SLM for unclassified "bucket" will always match the global setting
+
+ $self->{parameters__}{unclassified}{subject} = $self->global_config_('subject');
+
+ # Quarantine for unclassified will be off:
+
+ $self->{parameters__}{unclassified}{quarantine} = 0;
+
}
***************
*** 375,378 ****
--- 384,389 ----
}
close PARAMS;
+ } else {
+ $self->write_parameters();
}
|