diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-10-01 22:08:36 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-10-01 22:08:36 +0400 |
commit | 6205f36ee17d54e9e43d495ba929ed7708c98027 (patch) | |
tree | 6af53ce62a1e0e749cef789a77cfe3e6f0652722 /src/cfg_file.h | |
parent | cdb0282eb749fc0cb274575b01c9ca988a5f5db1 (diff) | |
download | rspamd-6205f36ee17d54e9e43d495ba929ed7708c98027.tar.gz rspamd-6205f36ee17d54e9e43d495ba929ed7708c98027.zip |
* Add dynamic configuration dumping.
* Add labels support to the statfiles (would be used for meta-classification)
* Rewrite exim spam.c patch to work with both rspamd and SA by using 'variant=rspamd' option
in spam_server line.
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index e2c1c7678..eaad2ff22 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -182,6 +182,7 @@ typedef double (*statfile_normalize_func)(struct config_file *cfg, long double s struct statfile { gchar *symbol; /**< symbol of statfile */ gchar *path; /**< filesystem pattern (with %r or %f) */ + gchar *label; /**< label of this statfile */ gsize size; /**< size of statfile */ GList *sections; /**< list of sections in statfile */ struct statfile_autolearn_params *autolearn; /**< autolearn params */ @@ -198,6 +199,7 @@ struct statfile { */ struct classifier_config { GList *statfiles; /**< statfiles list */ + GHashTable *labels; /**< statfiles with labels */ gchar *metric; /**< metric of this classifier */ struct classifier *classifier; /**< classifier interface */ struct tokenizer *tokenizer; /**< tokenizer used for classifier */ @@ -315,6 +317,7 @@ struct config_file { GList *pre_filters; /**< list of pre-processing lua filters */ GList *post_filters; /**< list of post-processing lua filters */ gchar *dynamic_conf; /**< path to dynamic configuration */ + GList *current_dynamic_conf; /**< currently loaded dynamic configuration */ GHashTable* domain_settings; /**< settings per-domains */ GHashTable* user_settings; /**< settings per-user */ gchar* domain_settings_str; /**< string representation of settings */ |