From 3af0406df42e6df644bf74a81fb7dd380d71901a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Jul 2010 20:44:39 +0400 Subject: [PATCH] * Empty and non-empty parts are allways different --- src/expressions.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.39.5