diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-13 20:54:22 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-13 20:54:22 +0300 |
commit | dbc8bb8dbc278b80dd13e732da9647c9df856fa4 (patch) | |
tree | 2911a704485d5d31304985180e3b521f0ead15c9 /src/plugins/spf.c | |
parent | 55ec0f5776109efcd191c1a91e5107ca52a41c83 (diff) | |
download | rspamd-dbc8bb8dbc278b80dd13e732da9647c9df856fa4.tar.gz rspamd-dbc8bb8dbc278b80dd13e732da9647c9df856fa4.zip |
Implement checking options for modules
Implement checking for classifier options
Fix redirector to handle timeouts and invalid replies properly
Fix surbl module not to check each url
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 868ad7a32..043f0b821 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -42,6 +42,7 @@ #include "../view.h" #include "../map.h" #include "../spf.h" +#include "../cfg_xml.h" #define DEFAULT_SYMBOL_FAIL "R_SPF_FAIL" #define DEFAULT_SYMBOL_SOFTFAIL "R_SPF_SOFTFAIL" @@ -69,6 +70,10 @@ spf_module_init (struct config_file *cfg, struct module_ctx **ctx) spf_module_ctx->spf_pool = memory_pool_new (memory_pool_get_size ()); *ctx = (struct module_ctx *)spf_module_ctx; + register_module_opt ("spf", "symbol_fail", MODULE_OPT_TYPE_STRING); + register_module_opt ("spf", "symbol_softfail", MODULE_OPT_TYPE_STRING); + register_module_opt ("spf", "symbol_allow", MODULE_OPT_TYPE_STRING); + register_module_opt ("spf", "whitelist", MODULE_OPT_TYPE_MAP); return 0; } |