From 677b6ccb453385199ce6c6a18194adc260a2de86 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Tue, 21 Sep 2021 10:09:37 +0200 Subject: [PATCH] fix milter_action on quarantine action --- pymodmilter/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymodmilter/storage.py b/pymodmilter/storage.py index 9666ca7..de4a2a9 100644 --- a/pymodmilter/storage.py +++ b/pymodmilter/storage.py @@ -324,5 +324,5 @@ class Quarantine: milter.msginfo["rcpts"].extend(wl_rcpts) milter.delrcpt(rcpts) - if self.milter_action is not None: + if self.milter_action is not None and not milter.msginfo["rcpts"]: return (self.milter_action, self.reject_reason)