aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-20 20:44:39 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-20 20:44:39 +0400
commit3af0406df42e6df644bf74a81fb7dd380d71901a (patch)
tree3513d3237e768e12d42ed46f17d540e41b36f2ac /src
parentc3678762318d546fae00a0aeb659c3c2c3d87fa7 (diff)
downloadrspamd-3af0406df42e6df644bf74a81fb7dd380d71901a.tar.gz
rspamd-3af0406df42e6df644bf74a81fb7dd380d71901a.zip
* Empty and non-empty parts are allways different
Diffstat (limited to 'src')
-rw-r--r--src/expressions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expressions.c b/src/expressions.c
index b4615c927..f28f38efb 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -959,6 +959,10 @@ rspamd_parts_distance (struct worker_task * task, GList * args, void *unused)
return TRUE;
}
}
+ else if ((p1->is_empty && !p2->is_empty) || (!p1->is_empty && p2->is_empty)) {
+ /* Empty and non empty parts are different */
+ return TRUE;
+ }
}
else {
debug_task ("message has too many text parts, so do not try to compare them with each other");