From: Vsevolod Stakhov Date: Tue, 20 Jul 2010 16:44:39 +0000 (+0400) Subject: * Empty and non-empty parts are allways different X-Git-Tag: 0.3.1~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3af0406df42e6df644bf74a81fb7dd380d71901a;p=rspamd.git * Empty and non-empty parts are allways different --- 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");