diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 18:59:32 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 18:59:32 +0400 |
commit | 27360c622541db1cf27dc5bef39524ca912b0e3d (patch) | |
tree | 7dd4d737853d4fe393f8dfaa094a24da204997a2 /src/cfg_file.h | |
parent | ad56efc14e371b6a452c1ccc46aa68d800125468 (diff) | |
download | rspamd-27360c622541db1cf27dc5bef39524ca912b0e3d.tar.gz rspamd-27360c622541db1cf27dc5bef39524ca912b0e3d.zip |
* Add autolearn config options
* Fix parsing of invalid urls in html parser
* Add ability to specify symbols in view parameter as comma-separated list
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index de3003306..850c34ece 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -117,6 +117,16 @@ struct statfile_section { }; /** + * Statfile autolearn parameters + */ +struct statfile_autolearn_params { + const char *metric; /**< metric name for autolearn triggering */ + double threshold_min; /**< threshold mark */ + double threshold_max; /**< threshold mark */ + GList *symbols; /**< list of symbols */ +}; + +/** * Statfile config definition */ struct statfile { @@ -127,6 +137,7 @@ struct statfile { size_t size; /**< size of statfile */ struct tokenizer *tokenizer; /**< tokenizer used for statfile */ GList *sections; /**< list of sections in statfile */ + struct statfile_autolearn_params *autolearn; /**< autolearn params */ }; /** @@ -304,6 +315,9 @@ void post_load_config (struct config_file *cfg); */ void unescape_quotes (char *line); +GList* parse_comma_list (memory_pool_t *pool, char *line); + + int yylex (void); int yyparse (void); void yyrestart (FILE *); |