aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-07 16:02:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-07 16:02:27 +0000
commit54602f1cbf740140efc543d678493c73233583b2 (patch)
treef4dbd45fd6d8c49c08def4c65613e52c99ca1bc2 /src/cfg_rcl.c
parent3b6242b776470ab17be284c5d0ce74101f081c09 (diff)
downloadrspamd-54602f1cbf740140efc543d678493c73233583b2.tar.gz
rspamd-54602f1cbf740140efc543d678493c73233583b2.zip
Add `strict_protocol_headers` option for rspamc protocol.
If this option is specified then unknown headers are treated as errors otherwise they are just ignored. This option is `false` by default meaning that unknown headers are ignored.
Diffstat (limited to 'src/cfg_rcl.c')
-rw-r--r--src/cfg_rcl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cfg_rcl.c b/src/cfg_rcl.c
index e8cb66800..188bd3315 100644
--- a/src/cfg_rcl.c
+++ b/src/cfg_rcl.c
@@ -1063,6 +1063,8 @@ rspamd_rcl_config_init (void)
G_STRUCT_OFFSET (struct config_file, history_file), RSPAMD_CL_FLAG_STRING_PATH);
rspamd_rcl_add_default_handler (sub, "use_mlock", rspamd_rcl_parse_struct_boolean,
G_STRUCT_OFFSET (struct config_file, mlock_statfile_pool), 0);
+ rspamd_rcl_add_default_handler (sub, "strict_protocol_headers", rspamd_rcl_parse_struct_boolean,
+ G_STRUCT_OFFSET (struct config_file, strict_protocol_headers), 0);
/**
* Metric section