/[Apache-SVN]/spamassassin/trunk/masses/logs-to-c
ViewVC logotype

Diff of /spamassassin/trunk/masses/logs-to-c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/masses/logs-to-c	2005/07/13 01:55:04	216087
+++ spamassassin/trunk/masses/logs-to-c	2005/07/13 01:56:15	216088
@@ -45,6 +45,7 @@ my $nybias = 10;
 my $lambda = 50;
 if ($opt_lambda) { $lambda = $opt_lambda; }
 
+my $msgline;
 my $is_spam = '';		# vec aligned with @tests_hit
 my @tests_hit = ();
 my %mutable_tests = ();
@@ -175,8 +176,8 @@ sub readlogs {
     my $caught;			# 1st parameter of log line
     my $rules;			# 4th parameter of log line
 
-    while (<IN>) {
-      ($caught, undef, undef, $rules) = split;
+    while (defined($msgline = <IN>)) {
+      ($caught, undef, undef, $rules) = split(' ', $msgline);
 
       # only take lines starting with Y or .
       next unless ($caught eq 'Y' || $caught eq '.') && $rules;

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26