aboutsummaryrefslogtreecommitdiffstats
path: root/mail/bayespam/files
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-09-09 11:02:16 +0800
committerlioux <lioux@FreeBSD.org>2002-09-09 11:02:16 +0800
commit88142e806748431ac7f72e102314e4dc3600fa5e (patch)
treea32283176593004bf854899e6f330e44a4a90c29 /mail/bayespam/files
parentfa1112d88cb48a459273deff203918e2e121244e (diff)
downloadfreebsd-ports-gnome-88142e806748431ac7f72e102314e4dc3600fa5e.tar.gz
freebsd-ports-gnome-88142e806748431ac7f72e102314e4dc3600fa5e.tar.zst
freebsd-ports-gnome-88142e806748431ac7f72e102314e4dc3600fa5e.zip
bayespam version 0.9.2: qmail spam filter written in Perl using
Bayesian classification
Diffstat (limited to 'mail/bayespam/files')
-rw-r--r--mail/bayespam/files/patch-bayes_process_email.pl27
-rw-r--r--mail/bayespam/files/patch-bayes_spam_check.pl12
2 files changed, 39 insertions, 0 deletions
diff --git a/mail/bayespam/files/patch-bayes_process_email.pl b/mail/bayespam/files/patch-bayes_process_email.pl
new file mode 100644
index 000000000000..2e6e3f7b574f
--- /dev/null
+++ b/mail/bayespam/files/patch-bayes_process_email.pl
@@ -0,0 +1,27 @@
+--- bayes_process_email.pl.orig Sun Sep 8 16:48:05 2002
++++ bayes_process_email.pl Sun Sep 8 16:48:28 2002
+@@ -6,6 +6,7 @@
+ use Fcntl;
+ use DB_File;
+
++use vars qw($number_of_messages %token_occurrences);
+ use Bayespam::Process;
+
+ #
+@@ -165,8 +166,6 @@
+ # dashes, and dollar signs -- words, in other words.
+ sub ProcessDirectory
+ {
+- our $number_of_messages;
+- our %token_occurrences;
+ my $directory = shift(@_);
+ local *number_of_messages = shift(@_);
+ local *token_occurrences = shift(@_);
+@@ -227,7 +226,6 @@
+ # dashes, and dollar signs -- words, in other words.
+ sub ProcessFile
+ {
+- our %token_occurrences;
+ my $file = shift(@_);
+ local *token_occurrences = shift(@_);
+
diff --git a/mail/bayespam/files/patch-bayes_spam_check.pl b/mail/bayespam/files/patch-bayes_spam_check.pl
new file mode 100644
index 000000000000..ab983b852f76
--- /dev/null
+++ b/mail/bayespam/files/patch-bayes_spam_check.pl
@@ -0,0 +1,12 @@
+--- bayes_spam_check.pl.orig Sun Sep 8 17:06:34 2002
++++ bayes_spam_check.pl Sun Sep 8 17:06:40 2002
+@@ -144,7 +144,7 @@
+ -h, --help : this (help) message
+ -r, --rating : corpus rating file to use
+
+-example: $0 --rating -o bayes_rating.dat
++example: $0 --rating bayes_rating.dat
+
+ EOF
+-}
++}