diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-04 18:44:18 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-04 18:44:18 +0000 |
commit | 8d5360b2f8dbff3a314f686c71c5973911726f06 (patch) | |
tree | 6f60b32cf5a487e768f4c1f8fa0a79041e1f3f2e /src/plugins/spf.c | |
parent | 67a21e3c3c5ab482d45e3532d4ceae4b132f9ff7 (diff) | |
download | rspamd-8d5360b2f8dbff3a314f686c71c5973911726f06.tar.gz rspamd-8d5360b2f8dbff3a314f686c71c5973911726f06.zip |
Add 'required' and 'default' values for doc strings
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 64 |
1 files changed, 52 insertions, 12 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 200270b11..d7f1031c7 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -97,25 +97,51 @@ spf_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) *ctx = (struct module_ctx *)spf_module_ctx; - rspamd_rcl_add_doc_by_path (cfg, NULL, + rspamd_rcl_add_doc_by_path (cfg, + NULL, "SPF check plugin", - "spf", UCL_OBJECT, NULL, 0); + "spf", + UCL_OBJECT, + NULL, + 0, + NULL, + 0); - rspamd_rcl_add_doc_by_path (cfg, "spf", + rspamd_rcl_add_doc_by_path (cfg, + "spf", "Map of IP addresses that should be excluded from SPF checks (in addition to `local_networks`)", - "whitelist", UCL_STRING, NULL, 0); - rspamd_rcl_add_doc_by_path (cfg, "spf", + "whitelist", + UCL_STRING, + NULL, + 0, + NULL, + 0); + rspamd_rcl_add_doc_by_path (cfg, + "spf", "Symbol that is added if SPF check is successful", - "symbol_allow", UCL_STRING, NULL, 0); - rspamd_rcl_add_doc_by_path (cfg, "spf", + "symbol_allow", + UCL_STRING, + NULL, + 0, + NULL, + 0); + rspamd_rcl_add_doc_by_path (cfg, + "spf", "Symbol that is added if SPF policy is set to 'deny'", - "symbol_fail", UCL_STRING, NULL, 0); + "symbol_fail", + UCL_STRING, + NULL, + 0, + NULL, + 0); rspamd_rcl_add_doc_by_path (cfg, "spf", "Symbol that is added if SPF policy is set to 'undefined'", "symbol_softfail", UCL_STRING, NULL, + 0, + NULL, 0); rspamd_rcl_add_doc_by_path (cfg, "spf", @@ -123,13 +149,27 @@ spf_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) "symbol_neutral", UCL_STRING, NULL, + 0, + NULL, 0); - rspamd_rcl_add_doc_by_path (cfg, "spf", + rspamd_rcl_add_doc_by_path (cfg, + "spf", "Size of SPF parsed records cache", - "spf_cache_size", UCL_INT, NULL, 0); - rspamd_rcl_add_doc_by_path (cfg, "spf", + "spf_cache_size", + UCL_INT, + NULL, + 0, + NULL, + 0); + rspamd_rcl_add_doc_by_path (cfg, + "spf", "Maximum lifetime for the elements in the SPF cache", - "spf_cache_expire", UCL_TIME, NULL, 0); + "spf_cache_expire", + UCL_TIME, + NULL, + 0, + NULL, + 0); return 0; } |