diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-10 16:53:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-10 16:53:19 +0100 |
commit | 6729b60066a4dcf9a38e3e766d829b9932ec5d29 (patch) | |
tree | c0a5943b16bd8379b04fdb829bd4e19d98266e85 /src/libserver | |
parent | ce27fc077994facdd43c38516ad91227692627d2 (diff) | |
download | rspamd-6729b60066a4dcf9a38e3e766d829b9932ec5d29.tar.gz rspamd-6729b60066a4dcf9a38e3e766d829b9932ec5d29.zip |
[Minor] Remove unused cfg fields
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_file.h | 2 | ||||
-rw-r--r-- | src/libserver/cfg_rcl.c | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 745f0fb22..2aad328f7 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -363,7 +363,6 @@ struct rspamd_config { GHashTable *groups; /**< groups of symbols */ struct rspamd_action *actions; /**< all actions of the metric */ - gboolean raw_mode; /**< work in raw mode instead of utf one */ gboolean one_shot_mode; /**< rules add only one symbol */ gboolean check_text_attachements; /**< check text attachements as text */ gboolean check_all_filters; /**< check all filters */ @@ -480,7 +479,6 @@ struct rspamd_config { guint max_blas_threads; /**< maximum threads for openblas when learning ANN */ guint max_opts_len; /**< maximum length for all options for a symbol */ - GList *classify_headers; /**< list of headers using for statistics */ struct module_s **compiled_modules; /**< list of compiled C modules */ struct worker_s **compiled_workers; /**< list of compiled C modules */ struct rspamd_log_format *log_format; /**< parsed log format */ diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index e3c69c343..06b7edee2 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1760,12 +1760,6 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections) RSPAMD_CL_FLAG_INT_32, "Maximum DNS requests per task (default: 64)"); rspamd_rcl_add_default_handler (sub, - "classify_headers", - rspamd_rcl_parse_struct_string_list, - G_STRUCT_OFFSET (struct rspamd_config, classify_headers), - 0, - "List of headers used for classifiers"); - rspamd_rcl_add_default_handler (sub, "control_socket", rspamd_rcl_parse_struct_string, G_STRUCT_OFFSET (struct rspamd_config, control_socket_path), @@ -1784,12 +1778,6 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections) 0, "Allow non MIME input for rspamd"); rspamd_rcl_add_default_handler (sub, - "raw_mode", - rspamd_rcl_parse_struct_boolean, - G_STRUCT_OFFSET (struct rspamd_config, raw_mode), - 0, - "Don't try to convert all messages to utf8"); - rspamd_rcl_add_default_handler (sub, "one_shot", rspamd_rcl_parse_struct_boolean, G_STRUCT_OFFSET (struct rspamd_config, one_shot_mode), |