Mercurial > dnsbl
comparison src/context.h @ 259:be939802c64e
add recipient rate limits by email from address or domain
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 21 Jul 2012 08:34:04 -0700 |
parents | d6d5c50b9278 |
children | f941563c2a95 |
comparison
equal
deleted
inserted
replaced
258:7a16904fec66 | 259:be939802c64e |
---|---|
207 | 207 |
208 void set_default_rate(int limit) {default_rcpt_rate = limit;}; | 208 void set_default_rate(int limit) {default_rcpt_rate = limit;}; |
209 void set_daily_multiple(int multiple) {rcpt_daily_multiple = multiple;}; | 209 void set_daily_multiple(int multiple) {rcpt_daily_multiple = multiple;}; |
210 void add_rate(const char *user, int limit) {rcpt_per_hour[user] = limit;}; | 210 void add_rate(const char *user, int limit) {rcpt_per_hour[user] = limit;}; |
211 int find_rate(const char *user); | 211 int find_rate(const char *user); |
212 bool is_unauthenticated_limited(const char *user); | |
212 int get_daily_multiple() {return rcpt_daily_multiple;}; | 213 int get_daily_multiple() {return rcpt_daily_multiple;}; |
213 | 214 |
214 void add_to(const char *to) {env_to.insert(to);}; | 215 void add_to(const char *to) {env_to.insert(to);}; |
215 void add_from(const char *from, const char *status) {env_from[from] = status;}; | 216 void add_from(const char *from, const char *status) {env_from[from] = status;}; |
216 void add_from_context(const char *from, CONTEXTP con) {env_from_context[from] = con;}; | 217 void add_from_context(const char *from, CONTEXTP con) {env_from_context[from] = con;}; |