diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 18:23:22 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 18:23:22 +0400 |
commit | ecbbd935773673d8df1f2cb8334b447f7b834b5a (patch) | |
tree | f97a716b471f52c3f6e05347c1e7866d497868a4 /src/expressions.c | |
parent | 99cd57ba7f0e6b9178ccacc6987b0854ed137d83 (diff) | |
download | rspamd-ecbbd935773673d8df1f2cb8334b447f7b834b5a.tar.gz rspamd-ecbbd935773673d8df1f2cb8334b447f7b834b5a.zip |
* Add ability to set metric's action from config file
* Fix bug with writing garbadge if message has no urls or no messages
* Fix bug with incorrect behaviour of compare_parts_distance function
Diffstat (limited to 'src/expressions.c')
-rw-r--r-- | src/expressions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c index c4465742c..650721b9e 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -952,7 +952,7 @@ rspamd_parts_distance (struct worker_task * task, GList * args, void *unused) return FALSE; } p2 = cur->data; - if (fuzzy_compare_hashes (p1->fuzzy, p2->fuzzy) >= threshold) { + if (fuzzy_compare_hashes (p1->fuzzy, p2->fuzzy) <= threshold) { return TRUE; } } |