diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-09 21:05:38 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-09 21:05:38 +0300 |
commit | 161f4d012cb00bf40853a0bb59f22d1373dbff53 (patch) | |
tree | 49e5f5941760d871fc5229b235ac9dae2dce2034 /src/cfg_file.l | |
parent | 19857603612f664b37ac627aab2325a5497131ee (diff) | |
download | rspamd-161f4d012cb00bf40853a0bb59f22d1373dbff53.tar.gz rspamd-161f4d012cb00bf40853a0bb59f22d1373dbff53.zip |
* Avoid mmap'ing in binlog as mmapped areas must be aligned
* Make binlog working for writing
* Add config params for binlog
Diffstat (limited to 'src/cfg_file.l')
-rw-r--r-- | src/cfg_file.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cfg_file.l b/src/cfg_file.l index bc46bbc1f..fdb151b45 100644 --- a/src/cfg_file.l +++ b/src/cfg_file.l @@ -209,9 +209,13 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG; <classifier_lex_state>autolearn return AUTOLEARN; <classifier_lex_state>min_mark return MIN_MARK; <classifier_lex_state>max_mark return MAX_MARK; +<classifier_lex_state>binlog return BINLOG; +<classifier_lex_state>binlog_master return BINLOG_MASTER; +<classifier_lex_state>binlog_rotate return BINLOG_ROTATE; <classifier_lex_state>[0-9]+ yylval.number=strtol(yytext, NULL, 10); return NUMBER; <classifier_lex_state>-?[0-9]+\.?[0-9]* yylval.fract=strtod(yytext, NULL); return FRACT; <classifier_lex_state>[0-9]+[kKmMgG]? yylval.limit=parse_limit(yytext); return SIZELIMIT; +<classifier_lex_state>[0-9]+[mMsShHdD]? yylval.seconds=parse_seconds(yytext); return SECONDS; <classifier_lex_state>\$[a-zA-Z_][a-zA-Z0-9_]+ yylval.string=strdup(yytext + 1); return VARIABLE; <classifier_lex_state>[a-zA-Z0-9_%-]+ yylval.string=strdup(yytext); return PARAM; <classifier_lex_state>\".+[^\\]\" yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; unescape_quotes(yylval.string); return QUOTEDSTRING; |