diff src/dnsbl.cpp @ 181:cb5c0d7ec451

embedded dcc filtering
author carl
date Sat, 06 Oct 2007 12:30:48 -0700
parents 8b86a894514d
children 2b06183b9b25
line wrap: on
line diff
--- a/src/dnsbl.cpp	Sat Oct 06 12:17:02 2007 -0700
+++ b/src/dnsbl.cpp	Sat Oct 06 12:30:48 2007 -0700
@@ -1179,11 +1179,11 @@
 		// assert env_to not empty, it contains the
 		// non-whitelisted folks that want content filtering
 		int score = (priv.want_spamassassin) ? priv.assassin->mlfi_eom() : 0;
-		bool greylist = false;
-		int  dccbulk  = 0;
-		if (priv.want_dccgrey || priv.want_dccbulk) priv.dccifd->mlfi_eom(greylist, dccbulk);
+		bool grey = false;
+		int  bulk = 0;
+		if (priv.want_dccgrey || priv.want_dccbulk) priv.dccifd->mlfi_eom(grey, bulk);
 
-		if (priv.want_dccgrey && greylist) {
+		if (priv.want_dccgrey && grey) {
 			smfi_setreply(ctx, "452", "4.2.1", "temporary greylist embargoed");
 			rc = SMFIS_TEMPFAIL;
 		}
@@ -1196,7 +1196,7 @@
 			for (context_map::iterator i=priv.env_to.begin(); i!=priv.env_to.end(); i++) {
 				char *rcpt	 = (*i).first;
 				CONTEXT &con = *((*i).second);
-				if (!con.acceptable_content(*priv.memory, score, dccbulk, msg)) {
+				if (!con.acceptable_content(*priv.memory, score, bulk, msg)) {
 					// bad html tags or excessive hosts or
 					// high spam assassin score or dcc bulk threshold exceedeed
 					smfi_delrcpt(ctx, rcpt);