summaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-02 20:27:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-02 20:27:48 +0400
commit9406633ff5e9a4ce288e3541c0a7e6beb5afccdc (patch)
treece3e1dc74b854d37109d27a954df321646a2326e /src/filter.c
parent76ba7fe19e094bf447c6f9eeab5c4654c002f873 (diff)
downloadrspamd-9406633ff5e9a4ce288e3541c0a7e6beb5afccdc.tar.gz
rspamd-9406633ff5e9a4ce288e3541c0a7e6beb5afccdc.zip
* Improve logic of learning messages: do not learn more than specific threshold
* Fix inserting results for symbols that were incorrectly (for example more than 1 time) defined in config file
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c
index f1851d295..d5e127b7a 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -84,7 +84,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const cha
metric_res->score += w;
if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) {
- if (s->options && opts) {
+ if (s->options && opts && opts != s->options) {
/* Append new options */
s->options = g_list_concat (s->options, opts);
/*