You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2007/10/25 20:31:07 UTC

svn commit: r588305 - /spamassassin/trunk/masses/mass-check

Author: dos
Date: Thu Oct 25 11:31:07 2007
New Revision: 588305

URL: http://svn.apache.org/viewvc?rev=588305&view=rev
Log:
detect and abort on a broken --reuse configuration

Modified:
    spamassassin/trunk/masses/mass-check

Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/mass-check?rev=588305&r1=588304&r2=588305&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Thu Oct 25 11:31:07 2007
@@ -245,6 +245,10 @@
   }
 
   require $rules_path;
+  unless (-s $rules_path > 130) {
+    die '--reuse configuration error detected; rules.pl file size is too small'.
+        ' ('.(-s $rules_path)." bytes)\nrules.pl path: $rules_path\n";
+  }
 }
 
 if ($opt_noisy) {