From f579fed1dee306a5cf58360589d29ae1514d25b4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 30 Mar 2009 19:35:57 +0400 Subject: * Add 3 functions: - is_recipients_sorted - has_only_html_part - compare_recipients_distance * Update documentation * Fix build --- src/cfg_file.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cfg_file.y') diff --git a/src/cfg_file.y b/src/cfg_file.y index b62b6b5b4..92b695d55 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -14,8 +14,6 @@ #include "perl.h" #endif -#define YYDEBUG 1 - extern struct config_file *cfg; extern int yylineno; extern char *yytext; @@ -330,8 +328,10 @@ metricfunction: cur_metric->func_name = memory_pool_strdup (cfg->cfg_pool, $3); #ifdef WITH_LUA cur_metric->func = lua_consolidation_func; -#else +#elif !defined(WITHOUT_PERL) cur_metric->func = perl_consolidation_func; +#else + yyerror ("yyparse: rspamd is not compiled with perl or lua, so it is not possible to use custom consolidation functions"); #endif } ; -- cgit v1.2.3