From edb81c52bea9651f17d7a0e74af6a97a3c195d0e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 16 Jan 2009 06:43:45 +0000
Subject: [PATCH] Fixed bug with argv processing that caused specified reject
 threshold to not work.

---
 exec/spamc.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exec/spamc.js b/exec/spamc.js
index e4d1a9a795..9c6ba72e76 100644
--- a/exec/spamc.js
+++ b/exec/spamc.js
@@ -49,7 +49,7 @@ function main()
 	var	max_size = 500000;	/* bytes */
 
 	// Process arguments:
-	for(i in argv) {
+	for(i=0; i<argc; i++) {
 
 		// Strip any pre-pended slashes
 		while(argv[i].charAt(0)=='-')
@@ -104,7 +104,6 @@ function main()
 		details += ', tests: ' + ret.symbols;
 
 	log(LOG_INFO, details);
-
 	if(!ret.isSpam || ret.score < reject_threshold)
 		reject = false;
 
-- 
GitLab