aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-23 12:46:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-23 12:46:08 +0000
commit6afff053762ad4fb377ec651da8a3cec04076313 (patch)
tree574f3a31799555a65a2d125f53b99c4032802520 /src/libserver/cfg_rcl.c
parenta022d264bb0838e7ff170f3165e169a81baab3d9 (diff)
downloadrspamd-6afff053762ad4fb377ec651da8a3cec04076313.tar.gz
rspamd-6afff053762ad4fb377ec651da8a3cec04076313.zip
Configurable min_word_len.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 0ba9423a1..5ffd07ced 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1300,6 +1300,11 @@ rspamd_rcl_config_init (void)
rspamd_rcl_parse_struct_boolean,
G_STRUCT_OFFSET (struct rspamd_config, check_all_filters),
0);
+ rspamd_rcl_add_default_handler (sub,
+ "min_word_len",
+ rspamd_rcl_parse_struct_integer,
+ G_STRUCT_OFFSET (struct rspamd_config, min_word_len),
+ RSPAMD_CL_FLAG_INT_32);
/**
* Metric section