Mercurial > dnsbl
comparison src/context.h @ 179:8b86a894514d
embedded dcc filtering
author | carl |
---|---|
date | Sat, 06 Oct 2007 10:56:35 -0700 |
parents | d6531c702be3 |
children | 8f4a9a37d4d9 |
comparison
equal
deleted
inserted
replaced
178:d6531c702be3 | 179:8b86a894514d |
---|---|
216 void set_require(bool r) {require_match = r; }; | 216 void set_require(bool r) {require_match = r; }; |
217 void set_grey(bool g) {dcc_greylist = g; }; | 217 void set_grey(bool g) {dcc_greylist = g; }; |
218 void set_bulk(int b) {dcc_bulk_threshold = b; }; | 218 void set_bulk(int b) {dcc_bulk_threshold = b; }; |
219 | 219 |
220 bool get_content_filtering() {return content_filtering; }; | 220 bool get_content_filtering() {return content_filtering; }; |
221 bool get_require() {return require_match; }; | 221 bool get_require() {return content_filtering && require_match; }; |
222 bool get_grey() {return dcc_greylist; }; | 222 bool get_grey() {return content_filtering && dcc_greylist; }; |
223 int get_bulk() {return dcc_bulk_threshold;}; | 223 int get_bulk() {return (content_filtering) ? dcc_bulk_threshold : 0;}; |
224 int get_host_limit() {return host_limit; }; | 224 int get_host_limit() {return (content_filtering) ? host_limit : 0;}; |
225 bool get_host_random() {return host_random; }; | 225 bool get_host_random() {return (content_filtering) ? host_random : 0;}; |
226 int get_spamassassin_limit() {return (content_filtering) ? spamassassin_limit : 0;}; | 226 int get_spamassassin_limit() {return (content_filtering) ? spamassassin_limit : 0;}; |
227 char* get_content_suffix(); | 227 char* get_content_suffix(); |
228 char* get_content_message(); | 228 char* get_content_message(); |
229 char* get_uribl_suffix(); | 229 char* get_uribl_suffix(); |
230 char* get_uribl_message(); | 230 char* get_uribl_message(); |