diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-03 21:57:38 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-03 21:57:38 +0300 |
commit | 618e3f4887b61c69915f1c641ea47044695d6e7f (patch) | |
tree | c36d6f2bcbc17c8590ad6b2088a6f909bbb7af98 /src/smtp.h | |
parent | 426963bff9e01d7d2f48d0e9eb232ccc11b33808 (diff) | |
download | rspamd-618e3f4887b61c69915f1c641ea47044695d6e7f.tar.gz rspamd-618e3f4887b61c69915f1c641ea47044695d6e7f.zip |
* Start new rspamd 0.3.4
* Add ability to manage per-module, per-worker and per-classifier options in XML parser
Diffstat (limited to 'src/smtp.h')
-rw-r--r-- | src/smtp.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/smtp.h b/src/smtp.h index 1933376c3..ddb302487 100644 --- a/src/smtp.h +++ b/src/smtp.h @@ -31,19 +31,23 @@ enum rspamd_smtp_stage { struct smtp_worker_ctx { struct smtp_upstream upstreams[MAX_UPSTREAM]; size_t upstream_num; + gchar *upstreams_str; memory_pool_t *pool; gchar *smtp_banner; + gchar *smtp_banner_str; guint32 smtp_delay; guint32 delay_jitter; + guint32 smtp_timeout_raw; struct timeval smtp_timeout; gboolean use_xclient; gboolean helo_required; gchar *smtp_capabilities; + gchar *smtp_capabilities_str; gchar *reject_message; - size_t max_size; - guint max_errors; + gsize max_size; + guint32 max_errors; gchar *metric; GList *smtp_filters[SMTP_STAGE_MAX]; struct rspamd_dns_resolver *resolver; @@ -115,6 +119,7 @@ struct smtp_filter { gpointer filter_data; }; +gpointer init_smtp_worker (void); void start_smtp_worker (struct rspamd_worker *worker); void register_smtp_filter (struct smtp_worker_ctx *ctx, enum rspamd_smtp_stage stage, smtp_filter_t filter, gpointer filter_data); |