From: Vsevolod Stakhov Date: Fri, 17 Dec 2010 16:50:57 +0000 (+0300) Subject: Fix bug with mime parser behaviour. X-Git-Tag: 0.3.7~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=064ab092fc07fc0b63bc1463b77ae1183ca3752d;p=rspamd.git Fix bug with mime parser behaviour. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4125b0249..7b685e3e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ SET(RSPAMD_MASTER_SITE_URL "http://bitbucket.org/vstakhov/rspamd") SET(RSPAMD_USER "nobody") SET(RSPAMD_GROUP "nobody") -CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) OPTION(DEBUG_MODE "Enable debug output [default: ON]" ON) OPTION(ENABLE_OPTIMIZATION "Enable optimization [default: OFF]" OFF) diff --git a/src/worker.c b/src/worker.c index d6112ff9d..ea3cbc832 100644 --- a/src/worker.c +++ b/src/worker.c @@ -741,6 +741,7 @@ init_worker (void) ctx = g_malloc0 (sizeof (struct rspamd_worker_ctx)); + ctx->is_mime = TRUE; register_worker_opt (TYPE_WORKER, "mime", xml_handle_boolean, ctx, G_STRUCT_OFFSET (struct rspamd_worker_ctx, is_mime)); return ctx;