]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add doc strings for regexp module
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Jan 2016 18:09:36 +0000 (18:09 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Jan 2016 18:09:36 +0000 (18:09 +0000)
src/plugins/regexp.c

index efee83e350a21107f71c2dd10c5ded778392b4a7..ddabe672eea180fa80f2e12c1c42f4ce5c2c58da 100644 (file)
@@ -102,6 +102,18 @@ regexp_module_init (struct rspamd_config *cfg, struct module_ctx **ctx)
 
        *ctx = (struct module_ctx *)regexp_module_ctx;
 
+       rspamd_rcl_add_doc_by_path (cfg, NULL,
+                       "Regular expressions rules plugin",
+                       "regexp", UCL_OBJECT, NULL, 0);
+
+       rspamd_rcl_add_doc_by_path (cfg,
+                       "regexp",
+                       "Maximum size of data chunk scanned with any regexp (further data is truncated)",
+                       "max_size",
+                       UCL_INT,
+                       NULL,
+                       0);
+
        return 0;
 }