diff options
-rw-r--r-- | src/libserver/cfg_rcl.c | 8 | ||||
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
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; |