ip return IP;
from return FROM;
symbols return SYMBOLS;
+skip_check return SKIP_CHECK;
error_time return ERROR_TIME;
dead_time return DEAD_TIME;
{
char *string;
size_t limit;
- char flag;
+ gboolean flag;
unsigned int seconds;
unsigned int number;
double fract;
%token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE PROFILE_FILE COUNT
%token VIEW IP FROM SYMBOLS
%token AUTOLEARN MIN_MARK MAX_MARK
-%token SETTINGS USER_SETTINGS DOMAIN_SETTINGS SYMBOL PATH
+%token SETTINGS USER_SETTINGS DOMAIN_SETTINGS SYMBOL PATH SKIP_CHECK
%type <string> STRING
%type <string> VARIABLE
}
cur_metric->reject_score = $3;
}
- | REQUIRED_SCORE EQSIGN FRACT {
+ | REJECT_SCORE EQSIGN FRACT {
if (cur_metric == NULL) {
cur_metric = memory_pool_alloc0 (cfg->cfg_pool, sizeof (struct metric));
}
| viewip
| viewfrom
| viewsymbols
+ | viewskipcheck
;
viewip:
}
}
;
+viewskipcheck:
+ SKIP_CHECK EQSIGN FLAG {
+ if (cur_view == NULL) {
+ cur_view = init_view (cfg->cfg_pool);
+ }
+ cur_view->skip_check = $3;
+ }
+ ;
settings:
SETTINGS OBRACE settingsbody EBRACE
check_symbol:
/* selected is now not NULL */
+ if (task->view->skip_check) {
+ return FALSE;
+ }
if (match_view_symbol (task->view, symbol)) {
return TRUE;
}