You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/08/03 16:59:38 UTC

svn commit: r562493 - /spamassassin/trunk/masses/rule-qa/corpus-hourly

Author: jm
Date: Fri Aug  3 07:59:37 2007
New Revision: 562493

URL: http://svn.apache.org/viewvc?view=rev&rev=562493
Log:
another attempt; avoid 'scantime=3' in favour of 'time=1186028679'

Modified:
    spamassassin/trunk/masses/rule-qa/corpus-hourly

Modified: spamassassin/trunk/masses/rule-qa/corpus-hourly
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/corpus-hourly?view=diff&rev=562493&r1=562492&r2=562493
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-hourly Fri Aug  3 07:59:37 2007
@@ -255,15 +255,14 @@
   for my $file (@{$fileary}) {
     open(IN, $file) or warn "cannot read $file";
     while (<IN>) {
-      if (/time=(\d+)/) {
-        next if (defined($timet_after) && $1 < $timet_after);
-        next if (defined($timet_before) && $1 > $timet_before);
-        print TMP;
-      }
+      next unless /\btime=(\d+)/;
+      next if (defined($timet_after) && $1 < $timet_after);
+      next if (defined($timet_before) && $1 > $timet_before);
+      print TMP;
     }
     close IN;
   }
-  close TMP;
+  close TMP or warn "failed to close $outname";
 }