From 0bf8c7f7ee337793c06cd4797ad812227b61dbd7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Nov 2016 17:27:24 +0000 Subject: [Config] Enable checking for text attachments by default --- src/libserver/cfg_rcl.c | 8 +++++++- src/libserver/cfg_utils.c | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/libserver') 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; -- cgit v1.2.3