aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-01 21:13:32 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-01 21:13:32 +0400
commitdc42a41c5e1d738373305468d61f70e0f2ee6d1a (patch)
tree773aaf3e0d54e81417f8ed7e31124a23f640a016 /src/plugins/surbl.h
parentdcdcecb4998fd65c6248225b220637df6694dbad (diff)
downloadrspamd-dc42a41c5e1d738373305468d61f70e0f2ee6d1a.tar.gz
rspamd-dc42a41c5e1d738373305468d61f70e0f2ee6d1a.zip
* Improve definitions of redirector domains
* Add support of regexp to check only specific urls for each domains * Check redirector in trie and not extract specific domains parts * Add POE errors handling for redirector
Diffstat (limited to 'src/plugins/surbl.h')
-rw-r--r--src/plugins/surbl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/surbl.h b/src/plugins/surbl.h
index 4aa059265..1df6fae31 100644
--- a/src/plugins/surbl.h
+++ b/src/plugins/surbl.h
@@ -6,6 +6,7 @@
#include "../modules.h"
#include "../cfg_file.h"
#include "../memcached.h"
+#include "../trie.h"
#define DEFAULT_REDIRECTOR_PORT 8080
#define DEFAULT_SURBL_WEIGHT 10
@@ -39,6 +40,8 @@ struct surbl_ctx {
GHashTable **exceptions;
GHashTable *whitelist;
GHashTable *redirector_hosts;
+ rspamd_trie_t *redirector_trie;
+ GPtrArray *redirector_ptrs;
unsigned use_redirector;
struct redirector_upstream *redirectors;
guint32 redirectors_number;