aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 18:30:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 18:30:46 +0100
commit219ea71d582dd5cabacfaa3f0ace8284d8f99cd8 (patch)
tree7066db9f6e60addafaddf4a86eb54305de463bab /src/libserver/cfg_rcl.c
parentdf5991434583bceeb572499f85c89a74e8d325de (diff)
downloadrspamd-219ea71d582dd5cabacfaa3f0ace8284d8f99cd8.tar.gz
rspamd-219ea71d582dd5cabacfaa3f0ace8284d8f99cd8.zip
Allow to specify classification headers in the options.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index b7821b7bb..3948ecdce 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1313,6 +1313,12 @@ rspamd_rcl_config_init (void)
rspamd_rcl_parse_struct_integer,
G_STRUCT_OFFSET (struct rspamd_config, dns_io_per_server),
RSPAMD_CL_FLAG_INT_32);
+ rspamd_rcl_add_default_handler (ssub,
+ "classify_headers",
+ rspamd_rcl_parse_struct_string_list,
+ G_STRUCT_OFFSET (struct rspamd_config, classify_headers),
+ 0);
+
/* New upstreams configuration */
ssub = rspamd_rcl_add_section (&sub->subsections, "upstream", NULL,