summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-17 17:27:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-17 17:27:24 +0000
commit0bf8c7f7ee337793c06cd4797ad812227b61dbd7 (patch)
tree462e6f7710efbd1ac269f338fc04fa4295da0211
parente1cb7814b26532fd18da711ec8d01425f0d2d6c1 (diff)
downloadrspamd-0bf8c7f7ee337793c06cd4797ad812227b61dbd7.tar.gz
rspamd-0bf8c7f7ee337793c06cd4797ad812227b61dbd7.zip
[Config] Enable checking for text attachments by default
-rw-r--r--src/libserver/cfg_rcl.c8
-rw-r--r--src/libserver/cfg_utils.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 8b6d6bfd4..7737b7b96 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1799,7 +1799,13 @@ rspamd_rcl_config_init (struct rspamd_config *cfg)
rspamd_rcl_parse_struct_boolean,
G_STRUCT_OFFSET (struct rspamd_config, check_text_attachements),
0,
- "Treat text attachements as normal text parts");
+ "Treat text attachments as normal text parts");
+ rspamd_rcl_add_default_handler (sub,
+ "check_attachments",
+ rspamd_rcl_parse_struct_boolean,
+ G_STRUCT_OFFSET (struct rspamd_config, check_text_attachements),
+ 0,
+ "Treat text attachments as normal text parts");
rspamd_rcl_add_default_handler (sub,
"tempdir",
rspamd_rcl_parse_struct_string,
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 38aad8d6c..e17ae315a 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -139,6 +139,8 @@ rspamd_config_new (void)
cfg->log_level = G_LOG_LEVEL_WARNING;
cfg->log_extended = TRUE;
+ cfg->check_text_attachements = TRUE;
+
cfg->dns_max_requests = 64;
cfg->history_rows = 200;
cfg->log_error_elts = 10;