Mercurial > dnsbl
comparison src/scanner.h @ 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 | 82886d4dd71f |
children | f92f24950bd3 |
comparison
equal
deleted
inserted
replaced
235:e6c66640f6f9 | 236:c0d2e99c0a1d |
---|---|
26 | 26 |
27 public: | 27 public: |
28 recorder(mlfiPriv *priv_, string_set &html_tags_, string_set &tlds_, string_set &cctlds_); | 28 recorder(mlfiPriv *priv_, string_set &html_tags_, string_set &tlds_, string_set &cctlds_); |
29 ~recorder() { empty(); }; | 29 ~recorder() { empty(); }; |
30 void empty(); | 30 void empty(); |
31 void new_url(char *host); | 31 void new_url(const char *host); |
32 void new_tag(char *tag); | 32 void new_tag(const char *tag); |
33 void binary(); | 33 void binary(); |
34 void syslog(char *buf) { my_syslog(priv, buf); }; | 34 void syslog(const char *buf) { my_syslog(priv, buf); }; |
35 mlfiPriv *get_priv() { return priv; }; | 35 mlfiPriv *get_priv() { return priv; }; |
36 string_set *get_cctlds() { return cctlds; }; | 36 string_set *get_cctlds() { return cctlds; }; |
37 string_set *get_tlds() { return tlds; }; | 37 string_set *get_tlds() { return tlds; }; |
38 string_set &get_hosts() { return hosts; }; | 38 string_set &get_hosts() { return hosts; }; |
39 bool excessive_bad_tags(size_t limit){ return (limit > 0) && (bad_html_tags > limit) && (bad_html_tags > 3*binary_tags); }; | 39 bool excessive_bad_tags(size_t limit){ return (limit > 0) && (bad_html_tags > limit) && (bad_html_tags > 3*binary_tags); }; |