comparison src/scanner.cpp @ 236:c0d2e99c0a1d

Add surbl checks on the smtp helo value, client reverse dns name, and mail from domain name
author Carl Byington <carl@five-ten-sg.com>
date Tue, 29 Sep 2009 11:36:15 -0700
parents 784030ac71f1
children ef97c7cd4a6e
comparison
equal deleted inserted replaced
235:e6c66640f6f9 236:c0d2e99c0a1d
1200 void recorder::empty() { 1200 void recorder::empty() {
1201 bad_html_tags = 0; 1201 bad_html_tags = 0;
1202 binary_tags = 0; 1202 binary_tags = 0;
1203 discard(hosts); 1203 discard(hosts);
1204 } 1204 }
1205 void recorder::new_url(char *host) { 1205 void recorder::new_url(const char *host) {
1206 register_string(hosts, host); 1206 register_string(hosts, host);
1207 } 1207 }
1208 void recorder::binary() { 1208 void recorder::binary() {
1209 binary_tags++; 1209 binary_tags++;
1210 } 1210 }
1211 void recorder::new_tag(char *tag) { 1211 void recorder::new_tag(const char *tag) {
1212 string_set::iterator i = html_tags->find(tag); 1212 string_set::iterator i = html_tags->find(tag);
1213 if (i == html_tags->end()) { 1213 if (i == html_tags->end()) {
1214 bad_html_tags++; 1214 bad_html_tags++;
1215 if ((debug_syslog > 2) && (bad_html_tags < 10)) { 1215 if ((debug_syslog > 2) && (bad_html_tags < 10)) {
1216 // only log the first 10 bad tags 1216 // only log the first 10 bad tags