Path: blob/main/mail/bayespam/files/patch-bayes_process_email.pl
18160 views
--- bayes_process_email.pl.orig 2016-01-17 18:02:48 UTC1+++ bayes_process_email.pl2@@ -6,6 +6,7 @@ use MIME::Parser;3use Fcntl;4use DB_File;56+use vars qw($number_of_messages %token_occurrences);7use Bayespam::Process;89#10@@ -165,8 +166,6 @@ untie( %token_ratings );11# dashes, and dollar signs -- words, in other words.12sub ProcessDirectory13{14- our $number_of_messages;15- our %token_occurrences;16my $directory = shift(@_);17local *number_of_messages = shift(@_);18local *token_occurrences = shift(@_);19@@ -227,7 +226,6 @@ sub ProcessDirectory20# dashes, and dollar signs -- words, in other words.21sub ProcessFile22{23- our %token_occurrences;24my $file = shift(@_);25local *token_occurrences = shift(@_);26272829