]> source.dussan.org Git - rspamd.git/commitdiff
Always use one_shot mode for fuzzy_check.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Dec 2013 12:19:36 +0000 (12:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Dec 2013 12:19:36 +0000 (12:19 +0000)
conf/options.conf
src/plugins/fuzzy_check.c

index 80b58e40145d459745aec5c988ad4564a6aa9478..841372ec23a0505360aff022dd1dc3bc63dc7f68 100644 (file)
@@ -11,5 +11,4 @@ options {
     map_watch_interval = 1min;
     dynamic_conf = "$DBDIR/rspamd_dynamic";
     history_file = "$DBDIR/rspamd.history";
-    one_shot = true;
 }
index db1325d15693db98d1113d646ac53d045d8a875d..b58860715b69155f7361623612bce63074aec3db 100644 (file)
@@ -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)));
                        }
                }