aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-03 12:47:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-03 12:47:33 +0000
commit63a9a0b5a875a2e33d61906eb62b0afa08e24d52 (patch)
tree9c7cf86d736dfab03d37c37d4e04e3141b47c57d /src/libserver
parentfaef7725273c49d379f0b1e237da944a93741097 (diff)
downloadrspamd-63a9a0b5a875a2e33d61906eb62b0afa08e24d52.tar.gz
rspamd-63a9a0b5a875a2e33d61906eb62b0afa08e24d52.zip
[Feature] Add concept of experimental modules
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_file.h3
-rw-r--r--src/libserver/cfg_rcl.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index fa04564f8..199c965f4 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -307,7 +307,8 @@ struct rspamd_config {
gboolean vectorized_hyperscan; /**< use vectorized hyperscan matching */
gboolean enable_shutdown_workaround; /**< enable workaround for legacy SA clients (exim) */
gboolean ignore_received; /**< Ignore data from the first received header */
- gboolean enable_sessions_cache; /**< Enable session cache for debug */
+ gboolean enable_sessions_cache; /**< Enable session cache for debug */
+ gboolean enable_experimental; /**< Enable experimental plugins */
gsize max_diff; /**< maximum diff size for text parts */
gsize max_cores_size; /**< maximum size occupied by rspamd core files */
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index dbc0fc5a4..fd0930212 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2006,6 +2006,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg)
0,
"Always check all filters");
rspamd_rcl_add_default_handler (sub,
+ "enable_experimental",
+ rspamd_rcl_parse_struct_boolean,
+ G_STRUCT_OFFSET (struct rspamd_config, check_all_filters),
+ 0,
+ "Enable experimental plugins");
+ rspamd_rcl_add_default_handler (sub,
"all_filters",
rspamd_rcl_parse_struct_boolean,
G_STRUCT_OFFSET (struct rspamd_config, check_all_filters),