diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-26 17:59:16 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-26 17:59:16 +0400 |
commit | 6bb0dd1d22e8217023e3f695c9a24c1d627e60d9 (patch) | |
tree | 5c292773f315d284d3a5bd3a31172845c983c4a7 /src | |
parent | d6625c5b603460aa485acc5d3ddd96a8b3c10858 (diff) | |
download | rspamd-6bb0dd1d22e8217023e3f695c9a24c1d627e60d9.tar.gz rspamd-6bb0dd1d22e8217023e3f695c9a24c1d627e60d9.zip |
Update a sample config file.0.4.1
Set version to 0.4.1.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/regexp.c | 4 | ||||
-rw-r--r-- | src/statfile.c | 4 |
2 files changed, 6 insertions, 2 deletions
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); |