From: Vsevolod Stakhov Date: Fri, 6 Dec 2013 12:19:36 +0000 (+0000) Subject: Always use one_shot mode for fuzzy_check. X-Git-Tag: 0.6.2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21b1eec1aae4e8d5798742d9ca823ecb425a7672;p=rspamd.git Always use one_shot mode for fuzzy_check. --- diff --git a/conf/options.conf b/conf/options.conf index 80b58e401..841372ec2 100644 --- a/conf/options.conf +++ b/conf/options.conf @@ -11,5 +11,4 @@ options { map_watch_interval = 1min; dynamic_conf = "$DBDIR/rspamd_dynamic"; history_file = "$DBDIR/rspamd.history"; - one_shot = true; } diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index db1325d15..b58860715 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -553,7 +553,7 @@ fuzzy_io_callback (gint fd, short what, void *arg) flag, map == NULL ? "(unknown)" : ""); if (map != NULL || !session->rule->skip_unknown) { rspamd_snprintf (buf, sizeof (buf), "%d: %d / %.2f", flag, value, nval); - insert_result (session->task, symbol, nval, g_list_prepend (NULL, + insert_result_single (session->task, symbol, nval, g_list_prepend (NULL, memory_pool_strdup (session->task->task_pool, buf))); } }