diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-30 20:54:18 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-30 20:54:18 +0400 |
commit | e5d0c7f8f6cda246eddfcab82b056650be753fe7 (patch) | |
tree | 6a2370ad9e0bd6dbf363ef0cb6927196c832c758 /src/main.h | |
parent | 8e09451a57dda5becb741e289a5dbb9890747f8d (diff) | |
download | rspamd-e5d0c7f8f6cda246eddfcab82b056650be753fe7.tar.gz rspamd-e5d0c7f8f6cda246eddfcab82b056650be753fe7.zip |
* Implement pre-filters that realizes concepts to check mail by some absolute values like:
- greylisting
- DNS BL/WL
- ratelimits
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 2331dbdb5..22b2f7584 100644 --- a/src/main.h +++ b/src/main.h @@ -179,6 +179,7 @@ struct worker_task { READ_MESSAGE, WRITE_REPLY, WRITE_ERROR, + WAIT_PRE_FILTER, WAIT_FILTER, WAIT_POST_FILTER, CLOSING_CONNECTION, @@ -248,6 +249,11 @@ struct worker_task { struct rspamd_dns_resolver *resolver; /**< DNS resolver */ struct event_base *ev_base; /**< Event base */ + + struct { + enum rspamd_metric_action action; /**< Action of pre filters */ + gchar *str; /**< String describing action */ + } pre_result; /**< Result of pre-filters */ }; /** |