diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/expressions.c | 4 |
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"); |