comparison src/context.cpp @ 180:7a722f482bfb

embedded dcc filtering
author carl
date Sat, 06 Oct 2007 12:17:02 -0700
parents d6531c702be3
children 8f4a9a37d4d9
comparison
equal deleted inserted replaced
179:8b86a894514d 180:7a722f482bfb
1031 } 1031 }
1032 printf("%s spamassassin %d; \n", indent, spamassassin_limit); 1032 printf("%s spamassassin %d; \n", indent, spamassassin_limit);
1033 printf("%s require_match %s; \n", indent, (require_match) ? "yes" : "no"); 1033 printf("%s require_match %s; \n", indent, (require_match) ? "yes" : "no");
1034 printf("%s dcc_greylist %s; \n", indent, (dcc_greylist) ? "yes" : "no"); 1034 printf("%s dcc_greylist %s; \n", indent, (dcc_greylist) ? "yes" : "no");
1035 if (dcc_bulk_threshold == 0) printf("%s dcc_bulk_threshold off; \n", indent); 1035 if (dcc_bulk_threshold == 0) printf("%s dcc_bulk_threshold off; \n", indent);
1036 else if (dcc_bulk_threshold == 1000) printf("%s dcc_bulk_threshold many; \n", indent); 1036 else if (dcc_bulk_threshold >= dccbulk) printf("%s dcc_bulk_threshold many; \n", indent);
1037 else printf("%s dcc_bulk_threshold %d; \n", indent, dcc_bulk_threshold); 1037 else printf("%s dcc_bulk_threshold %d; \n", indent, dcc_bulk_threshold);
1038 printf("%s }; \n", indent); 1038 printf("%s }; \n", indent);
1039 spamass |= (spamassassin_limit != 0); 1039 spamass |= (spamassassin_limit != 0);
1040 } 1040 }
1041 else { 1041 else {
1336 if (!tsa(tok, token_semi)) return false; 1336 if (!tsa(tok, token_semi)) return false;
1337 } 1337 }
1338 else if (have == token_dccbulk) { 1338 else if (have == token_dccbulk) {
1339 have = tok.next(); 1339 have = tok.next();
1340 if (have == token_off) me.set_bulk(0); 1340 if (have == token_off) me.set_bulk(0);
1341 else if (have == token_many) me.set_bulk(1000); 1341 else if (have == token_many) me.set_bulk(dccbulk);
1342 else { 1342 else {
1343 char *e; 1343 char *e;
1344 long i = strtol(have, &e, 10); 1344 long i = strtol(have, &e, 10);
1345 if (*e != '\0') { 1345 if (*e != '\0') {
1346 tok.token_error("integer", have); 1346 tok.token_error("integer", have);