diff options
author | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-02-01 19:07:33 +0300 |
---|---|---|
committer | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-02-01 19:07:33 +0300 |
commit | 18b4a627676f71b37c98f566218fad6a249025cb (patch) | |
tree | 389153db1066311040184f2b908e4f3b7b5e8536 /src/cfg_file.y | |
parent | 56f520e21f7f164bcd2d99bb46b5875b0a398e75 (diff) | |
download | rspamd-18b4a627676f71b37c98f566218fad6a249025cb.tar.gz rspamd-18b4a627676f71b37c98f566218fad6a249025cb.zip |
* Add ability to classify only specific headers (for example Subject)
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index d5a008587..21509f2d6 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -60,7 +60,7 @@ struct rspamd_view *cur_view = NULL; %token VIEW IP FROM SYMBOLS CLIENT_IP %token AUTOLEARN MIN_MARK MAX_MARK MAXFILES MAXCORE %token SETTINGS USER_SETTINGS DOMAIN_SETTINGS SYMBOL PATH SKIP_CHECK GROW_FACTOR -%token LOG_BUFFER DEBUG_IP NORMALIZER +%token LOG_BUFFER DEBUG_IP NORMALIZER HEADER_ONLY %type <string> STRING %type <string> VARIABLE @@ -353,7 +353,6 @@ metriccmd: | metricfunction | metricscore | metricrjscore - | metricclassifier | metriccache ; @@ -412,18 +411,6 @@ metricrjscore: } ; -metricclassifier: - CLASSIFIER EQSIGN QUOTEDSTRING { - if (cur_metric == NULL) { - cur_metric = memory_pool_alloc0 (cfg->cfg_pool, sizeof (struct metric)); - } - if ((cur_metric->classifier = get_classifier ($3)) == NULL) { - yyerror ("yyparse: unknown classifier %s", $3); - YYERROR; - } - } - ; - metriccache: CACHE_FILE EQSIGN QUOTEDSTRING { if (cur_metric == NULL) { |