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/10 03:11:11 UTC

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

Author: jm
Date: Fri Dec  9 18:11:07 2005
New Revision: 355693

URL: http://svn.apache.org/viewcvs?rev=355693&view=rev
Log:
add a --noisy switch to mass-check; it will produce lots of updates during scan, so that the buildbot doesn't time out due to lack of input

Modified:
    spamassassin/trunk/masses/mass-check

Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/mass-check?rev=355693&r1=355692&r2=355693&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Fri Dec  9 18:11:07 2005
@@ -32,6 +32,7 @@
   --debug=LIST  report debugging information (default is all facilities, LIST
                 is a comma-separated list of facilities)
   --progress    show progress updates during check
+  --noisy       show noisier progress updates during check
   --rewrite=OUT save rewritten message to OUT (default is /tmp/out)
   --showdots    print a dot for each scanned message
   --rules=RE    Only test rules matching the given regexp RE
@@ -90,7 +91,7 @@
 	    $opt_mid $opt_net $opt_nosort $opt_progress $opt_showdots
 	    $opt_spamlog $opt_tail $opt_rules $opt_restart $opt_loguris
 	    $opt_logmem $opt_after $opt_before $opt_rewrite $opt_deencap
-	    $opt_learn $opt_reuse $opt_lint $opt_cache
+	    $opt_learn $opt_reuse $opt_lint $opt_cache $opt_noisy
 	    $total_messages $statusevery
 	    %reuse %orig_conf %reuse_conf $reuse_rules_loaded_p);
 
@@ -124,6 +125,7 @@
 	   "progress", "rewrite:s", "showdots", "spamlog=s", "tail=i",
 	   "rules=s", "restart=i", "after=s", "before=s", "loguris",
 	   "deencap=s", "logmem", "learn=i", "reuse", "lint", "cache",
+           "noisy",
 	   "dir" => sub { $opt_format = "dir"; },
 	   "file" => sub { $opt_format = "file"; },
 	   "mbox" => sub { $opt_format = "mbox"; },
@@ -141,6 +143,10 @@
 
 require "rules.pl" if $opt_reuse;
 
+if ($opt_noisy) {
+  $opt_progress = 1;        # implies --progress
+}
+
 # test messages for the mass-check
 my @targets;
 if ($opt_f) {
@@ -242,7 +248,7 @@
 		 "# Perl version: $] on $Config{archname}\n" .
                  "# Switches: '$cmdline'\n";
 
-my $updates = 10;
+my $updates = ($opt_noisy ? 100 : 10);
 my $total_count = 0;
 my $spam_count = 0;
 my $ham_count = 0;