Mercurial > dnsbl
diff src/context.h @ 119:d9d2f8699621
uribl patch from Jeff Evans <jeffe@tricab.com>
author | carl |
---|---|
date | Sun, 12 Mar 2006 12:38:43 -0800 |
parents | aa07452e641b |
children | f4746d8a12a3 |
line wrap: on
line diff
--- a/src/context.h Sun Mar 12 10:20:59 2006 -0800 +++ b/src/context.h Sun Mar 12 12:38:43 2006 -0800 @@ -96,8 +96,10 @@ context_map env_from_context; // map senders to a child context char * env_from_default; // default value for senders that are not found in the map white/black/unknown/inherit bool content_filtering; // - char * content_suffix; // for sbl url body filtering + char * content_suffix; // for url body filtering based on ip addresses of hostnames in the body char * content_message; // "" + char * uribl_suffix; // for uribl body filtering based on hostnames in the body + char * uribl_message; // "" string_set content_host_ignore;// hosts to ignore for content sbl checking string_set content_tlds; // string_set content_cctlds; // @@ -135,6 +137,8 @@ void set_content_filtering(bool filter) {content_filtering = filter;}; void set_content_suffix(char *suffix) {content_suffix = suffix;}; void set_content_message(char *message) {content_message = message;}; + void set_uribl_suffix(char *suffix) {uribl_suffix = suffix;}; + void set_uribl_message(char *message) {uribl_message = message;}; void add_ignore(char *host) {content_host_ignore.insert(host);}; void add_tld(char *tld) {content_tlds.insert(tld);}; void add_cctld(char *cctld) {content_cctlds.insert(cctld);}; @@ -155,6 +159,8 @@ bool get_host_random() {return host_random;}; char* get_content_suffix(); char* get_content_message(); + char* get_uribl_suffix(); + char* get_uribl_message(); string_set& get_content_host_ignore(); string_set& get_content_tlds(); string_set& get_content_cctlds(); @@ -219,6 +225,7 @@ extern char *token_substitute; extern char *token_tld; extern char *token_unknown; +extern char *token_uribl; extern char *token_white; extern char *token_myhostname;