From f97a5c249564bcf3f16809ccf8db8c5eb608d8f1 Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 27 Apr 2022 22:23:04 +0000 Subject: [PATCH] fixed bug in filter conditions (everything except the first check was ignored) FossilOrigin-Name: 3fc7bf16bc67614fe215a294757dbbb2063a2a17ff1b9cdef9907cf0e7fb8bd6 --- chibackend/mfilter.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chibackend/mfilter.d b/chibackend/mfilter.d index b92ec0d..3992faf 100644 --- a/chibackend/mfilter.d +++ b/chibackend/mfilter.d @@ -284,8 +284,8 @@ public bool executeMailFilter (const(char)[] filter, FilterHelper hlp) { immutable bool rval = parseExprSimple(doskip); if (!doskip) { final switch (cond) { - case '|': if (res) doskip = true; break; - case '&': if (!res) doskip = true; break; + case '|': res = (res || rval); if (res) doskip = true; break; + case '&': res = (res && rval); if (!res) doskip = true; break; } } } -- 2.11.4.GIT