diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-30 19:35:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-30 19:35:57 +0400 |
commit | f579fed1dee306a5cf58360589d29ae1514d25b4 (patch) | |
tree | f5d5e288553d30fc617d06bf9e48ae919092f876 /src/cfg_file.y | |
parent | dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (diff) | |
download | rspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.tar.gz rspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.zip |
* Add 3 functions:
- is_recipients_sorted
- has_only_html_part
- compare_recipients_distance
* Update documentation
* Fix build
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 6 |
1 files changed, 3 insertions, 3 deletions
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 } ; |