freebsd-ports/mail/dspam/files/patch-scripts__train.pl
Ion-Mihai Tetcu 3913cf3211 Update to 3.9.0.
Yes, after a long hiatus and a year of development and testing, bug fixes and
improvements bu the new devel team, a new version is ready for use.

There are too many change to mention here, please see: files/UPDATING.
You will need to modify your dspam.conf and database structure, as described in
the UPGRADING from the tarball (installed in share/doc/dspam).

Tested by:	supsonic#dspam on irc.freenode.net
2010-01-19 18:25:27 +00:00

17 lines
635 B
Perl

--- ./scripts/train.pl.orig 2010-01-11 23:21:58.000000000 +0200
+++ ./scripts/train.pl 2010-01-17 18:52:16.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%%PERL%%
# train.pl
# This tool trains a corpus of messages (a directory containing a nonspam and
@@ -14,7 +14,7 @@
use vars qw { $USER $PATH $REPORTING_WINDOW $CORPUS $TRAINING_MODE };
$REPORTING_WINDOW = 250; # How often to summarize
-$PATH = "/usr/local/dspam/bin"; # Path to dspam binaries
+$PATH = "%%DSPAM_PATH%%"; # Path to dspam binaries
$TRAINING_MODE = "teft"; # Training mode
### DO NOT CONFIGURE BELOW THIS LINE ###