comparison src/context.h @ 272:a99b6c1f5f67

Code cleanup, increase minimum hostname length for uribl checking
author Carl Byington <carl@five-ten-sg.com>
date Mon, 09 Sep 2013 19:30:21 -0700
parents f92f24950bd3
children 368572c57013
comparison
equal deleted inserted replaced
271:93d1337fd5bc 272:a99b6c1f5f67
226 void set_content_suffix(const char *suffix) {content_suffix = suffix; }; 226 void set_content_suffix(const char *suffix) {content_suffix = suffix; };
227 void set_content_message(const char *message) {content_message = message; }; 227 void set_content_message(const char *message) {content_message = message; };
228 void set_uribl_suffix(const char *suffix) {uribl_suffix = suffix; }; 228 void set_uribl_suffix(const char *suffix) {uribl_suffix = suffix; };
229 void set_uribl_message(const char *message) {uribl_message = message; }; 229 void set_uribl_message(const char *message) {uribl_message = message; };
230 void add_ignore(const char *host) {content_host_ignore.insert(host);}; 230 void add_ignore(const char *host) {content_host_ignore.insert(host);};
231 void add_tld(const char *tld); 231 void add_tld(const char *tld) {content_tlds.insert(tld); };
232 void add_tldwild(const char *tld) {content_tldwilds.insert(tld); };
233 void add_tldnot(const char *tld) {content_tldnots.insert(tld); };
232 234
233 void set_host_limit(int limit) {host_limit = limit; }; 235 void set_host_limit(int limit) {host_limit = limit; };
234 void set_host_message(const char *message) {host_limit_message = message;}; 236 void set_host_message(const char *message) {host_limit_message = message;};
235 void set_host_random(bool random) {host_random = random; }; 237 void set_host_random(bool random) {host_random = random; };
236 void set_spamassassin_limit(int limit) {spamassassin_limit = limit; }; 238 void set_spamassassin_limit(int limit) {spamassassin_limit = limit; };