diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-06 20:47:07 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-06 20:47:07 +0300 |
commit | bfda3c0113c0c2eb4284ad428a84c7db2fa4b9e3 (patch) | |
tree | 511c8dbd4d82e5d8900f8b3784936f617a82dfc9 /src/cfg_file.y | |
parent | 61d89e0791f1d1a2d590ee7c05e6ad5066d1ee3d (diff) | |
download | rspamd-bfda3c0113c0c2eb4284ad428a84c7db2fa4b9e3.tar.gz rspamd-bfda3c0113c0c2eb4284ad428a84c7db2fa4b9e3.zip |
* Add logging urls as it was required by rambler search
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 8ac9cb6a5..dbee3a0bd 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -54,7 +54,7 @@ struct rspamd_view *cur_view = NULL; %token FILTERS FACTORS METRIC NAME CACHE_FILE %token REQUIRED_SCORE REJECT_SCORE FUNCTION FRACT COMPOSITES CONTROL PASSWORD %token LOGGING LOG_TYPE LOG_TYPE_CONSOLE LOG_TYPE_SYSLOG LOG_TYPE_FILE -%token LOG_LEVEL LOG_LEVEL_DEBUG LOG_LEVEL_INFO LOG_LEVEL_WARNING LOG_LEVEL_ERROR LOG_FACILITY LOG_FILENAME +%token LOG_LEVEL LOG_LEVEL_DEBUG LOG_LEVEL_INFO LOG_LEVEL_WARNING LOG_LEVEL_ERROR LOG_FACILITY LOG_FILENAME LOG_URLS %token STATFILE ALIAS PATTERN WEIGHT STATFILE_POOL_SIZE SIZE TOKENIZER CLASSIFIER %token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE PROFILE_FILE COUNT %token VIEW IP FROM SYMBOLS CLIENT_IP @@ -563,6 +563,7 @@ loggingcmd: | logginglevel | loggingfacility | loggingfile + | loggingurls ; loggingtype: @@ -650,6 +651,13 @@ loggingfile: } ; +loggingurls: + LOG_URLS EQSIGN FLAG { + if ($3 != 0) { + cfg->log_urls = TRUE; + } + } + ; classifier: CLASSIFIER OBRACE classifierbody EBRACE { |