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 2005/12/05 23:56:44 UTC
svn commit: r354214 - /spamassassin/trunk/masses/rule-qa/corpus-hourly
Author: jm
Date: Mon Dec 5 14:56:42 2005
New Revision: 354214
URL: http://svn.apache.org/viewcvs?rev=354214&view=rev
Log:
remove refactored-out block
Modified:
spamassassin/trunk/masses/rule-qa/corpus-hourly
Modified: spamassassin/trunk/masses/rule-qa/corpus-hourly
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/corpus-hourly?rev=354214&r1=354213&r2=354214&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-hourly Mon Dec 5 14:56:42 2005
@@ -256,47 +256,6 @@
@spam = grep { /-net-/ } @spam;
}
-
-# this block is no longer necessary; we now strictly match dates
-# and revisions, so there won't be mismatching revisions treated
-# as equivalent.
-if (0) {
- # if both net and local exist, use newer
- my %spam;
- my %ham;
-
- for my $file (@spam) {
- $spam{$1}++ if ($file =~ m/-(\w[-\w]+)\.log$/);
- }
- for my $file (@ham) {
- $ham{$1}++ if ($file =~ m/-(\w[-\w]+)\.log$/);
- }
- while (my ($user, $count) = each %ham) {
- if ($count > 1) {
- my $nightly = "ham-$user.log";
- my $weekly = "ham-net-$user.log";
- if ($revision{$nightly} >= $revision{$weekly}) {
- @ham = grep { $_ ne $weekly } @ham;
- }
- else {
- @ham = grep { $_ ne $nightly } @ham;
- }
- }
- }
- while (my ($user, $count) = each %spam) {
- if ($count > 1) {
- my $nightly = "spam-$user.log";
- my $weekly = "spam-net-$user.log";
- if ($revision{$nightly} >= $revision{$weekly}) {
- @spam = grep { $_ ne $weekly } @spam;
- }
- else {
- @spam = grep { $_ ne $nightly } @spam;
- }
- }
- }
-}
-
# age
if ($age =~ /(\d+)day/) {
my $mtime = $1;