Mercurial > dnsbl
diff src/context.h @ 140:4028de9b46dd
cleanup smtp rate limit code
author | carl |
---|---|
date | Wed, 27 Sep 2006 08:00:13 -0700 |
parents | f4746d8a12a3 |
children | ecb40aa3eaa5 |
line wrap: on
line diff
--- a/src/context.h Tue Sep 26 15:21:17 2006 -0700 +++ b/src/context.h Wed Sep 27 08:00:13 2006 -0700 @@ -112,6 +112,7 @@ char * tag_limit_message; // error message for excessive bad html tags dnsblp_map dnsbl_names; // name to dnsbl mapping for lists that are available in this context and children dnsblp_list dnsbl_list; // list of dnsbls to be used in this context + int default_rcpt_rate; // if not specified per user rcpt_rates rcpt_per_hour; // per user limits on number of recipients per hour @@ -129,6 +130,7 @@ char* get_verify() {return verify_host;}; VERIFYP find_verify(char *to); + void set_default_rate(int limit) {default_rcpt_rate = limit;}; void add_rate(char *user, int limit) {rcpt_per_hour[user] = limit;}; int find_rate(char *user);