From 6bb0dd1d22e8217023e3f695c9a24c1d627e60d9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Jul 2011 17:59:16 +0400 Subject: [PATCH] Update a sample config file. Set version to 0.4.1. --- CMakeLists.txt | 2 +- conf/rspamd-basic.xml.in | 65 +++++++++++++++++++++++++++++++++------- src/plugins/regexp.c | 4 +++ src/statfile.c | 4 +-- 4 files changed, 62 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ebc2ee847..667bd223b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ PROJECT(rspamd C) SET(RSPAMD_VERSION_MAJOR 0) SET(RSPAMD_VERSION_MINOR 4) -SET(RSPAMD_VERSION_PATCH 0) +SET(RSPAMD_VERSION_PATCH 1) SET(RSPAMD_VERSION "${RSPAMD_VERSION_MAJOR}.${RSPAMD_VERSION_MINOR}.${RSPAMD_VERSION_PATCH}") diff --git a/conf/rspamd-basic.xml.in b/conf/rspamd-basic.xml.in index 3d7ba65be..7115199fa 100644 --- a/conf/rspamd-basic.xml.in +++ b/conf/rspamd-basic.xml.in @@ -49,7 +49,7 @@ default - 14.0 + 15.0 reject greylist:4 @@ -304,7 +304,6 @@ localhost:11335 1 2048 - 0 /var/run/rspamd/fuzzy.db yes @@ -314,16 +313,14 @@ localhost:11334 1 2048 - 0 q1 normal *:11333 - 1 + 2 2048 - 0 @@ -364,6 +361,7 @@ uribl.rambler.ru dbl.spamhaus.org + noip - 0.1 + + 0.3 R_MIXED_CHARSET @@ -416,13 +415,19 @@ PHISHING - + + @@ -433,13 +438,18 @@ + 2048 1d + + + + 1M + - + + + + + osb-text default 10 + 1000 BAYES_HAM 10M diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 04dd49566..3dbe2df6f 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -533,6 +533,10 @@ regexp_module_config (struct config_file *cfg) cur_opt = g_list_next (cur_opt); continue; } + else if (g_ascii_strncasecmp (cur->param, "max_size", sizeof ("max_size") - 1) == 0) { + cur_opt = g_list_next (cur_opt); + continue; + } cur_item = memory_pool_alloc0 (regexp_module_ctx->regexp_pool, sizeof (struct regexp_module_item)); cur_item->symbol = cur->param; if (cur->is_lua && cur->lua_type == LUA_VAR_STRING) { diff --git a/src/statfile.c b/src/statfile.c index 65da15033..215378749 100644 --- a/src/statfile.c +++ b/src/statfile.c @@ -332,14 +332,14 @@ statfile_pool_open (statfile_pool_t * pool, gchar *filename, size_t size, gboole } if (!forced && st.st_size > pool->max) { - msg_info ("cannot attach file to pool, too large: %z", (size_t) st.st_size); + msg_info ("cannot attach file to pool, too large: %Hz", (size_t) st.st_size); return NULL; } memory_pool_lock_mutex (pool->lock); if (!forced && abs (st.st_size - size) > sizeof (struct stat_file)) { memory_pool_unlock_mutex (pool->lock); - msg_warn ("need to reindex statfile old size: %z, new size: %z", st.st_size, size); + msg_warn ("need to reindex statfile old size: %Hz, new size: %Hz", st.st_size, size); return statfile_pool_reindex (pool, filename, st.st_size, size); } memory_pool_unlock_mutex (pool->lock); -- 2.39.5