From 4266cbb9d4df517c11d1f25f567f5ced5379f9c5 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Wed, 10 Jan 2024 16:03:07 +0100 Subject: [PATCH] extend conditions logging --- pyquarantine/conditions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyquarantine/conditions.py b/pyquarantine/conditions.py index 89ed544..f19549e 100644 --- a/pyquarantine/conditions.py +++ b/pyquarantine/conditions.py @@ -185,6 +185,9 @@ class Conditions: if self.var is not None: if self.var not in milter.msginfo["vars"]: + logger.debug( + "ignore message, " + "vars does not match") return False if self.list is not None: @@ -195,6 +198,9 @@ class Conditions: for to in envto: if not self.list.check(envfrom, to, logger): + logger.debug( + "ignore message, " + "list does not match") return False return True