diff src/context.cpp @ 180:7a722f482bfb

embedded dcc filtering
author carl
date Sat, 06 Oct 2007 12:17:02 -0700
parents d6531c702be3
children 8f4a9a37d4d9
line wrap: on
line diff
--- a/src/context.cpp	Sat Oct 06 10:56:35 2007 -0700
+++ b/src/context.cpp	Sat Oct 06 12:17:02 2007 -0700
@@ -1033,7 +1033,7 @@
 		printf("%s         require_match %s; \n", indent, (require_match) ? "yes" : "no");
 		printf("%s         dcc_greylist  %s; \n", indent, (dcc_greylist)  ? "yes" : "no");
 		if (dcc_bulk_threshold == 0)			printf("%s         dcc_bulk_threshold off; \n", indent);
-		else if (dcc_bulk_threshold == 1000)	printf("%s         dcc_bulk_threshold many; \n", indent);
+		else if (dcc_bulk_threshold >= dccbulk) printf("%s         dcc_bulk_threshold many; \n", indent);
 		else									printf("%s         dcc_bulk_threshold %d; \n", indent, dcc_bulk_threshold);
 		printf("%s     }; \n", indent);
 		spamass |= (spamassassin_limit != 0);
@@ -1338,7 +1338,7 @@
 		else if (have == token_dccbulk) {
 			have = tok.next();
 				 if (have == token_off) me.set_bulk(0);
-			else if (have == token_many) me.set_bulk(1000);
+			else if (have == token_many) me.set_bulk(dccbulk);
 			else {
 				char *e;
 				long i = strtol(have, &e, 10);