Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/mail/bayespam/files/patch-bayes_process_email.pl
16462 views
1
--- bayes_process_email.pl.orig 2016-01-17 18:02:48 UTC
2
+++ bayes_process_email.pl
3
@@ -6,6 +6,7 @@ use MIME::Parser;
4
use Fcntl;
5
use DB_File;
6
7
+use vars qw($number_of_messages %token_occurrences);
8
use Bayespam::Process;
9
10
#
11
@@ -165,8 +166,6 @@ untie( %token_ratings );
12
# dashes, and dollar signs -- words, in other words.
13
sub ProcessDirectory
14
{
15
- our $number_of_messages;
16
- our %token_occurrences;
17
my $directory = shift(@_);
18
local *number_of_messages = shift(@_);
19
local *token_occurrences = shift(@_);
20
@@ -227,7 +226,6 @@ sub ProcessDirectory
21
# dashes, and dollar signs -- words, in other words.
22
sub ProcessFile
23
{
24
- our %token_occurrences;
25
my $file = shift(@_);
26
local *token_occurrences = shift(@_);
27
28
29