From dfc5fd6e491b0f35899744fab0269879dfd21df6 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 9 Oct 2025 10:01:50 +0200 Subject: [PATCH] Replaced anyof by allof condition. To make the rule work properly when dates are defined. --- modoboa/autoreply/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa/autoreply/models.py b/modoboa/autoreply/models.py index 8a77cd753..8cf3802af 100644 --- a/modoboa/autoreply/models.py +++ b/modoboa/autoreply/models.py @@ -58,9 +58,9 @@ class ARmessage(models.Model): name = "autoreply" action = [("vacation", ":subject", self.subject, ":days", days, content)] if not fset.getfilter(name): - fset.addfilter(name, condition, action) + fset.addfilter(name, condition, action, matchtype="allof") else: - fset.updatefilter(name, name, condition, action) + fset.updatefilter(name, name, condition, action, matchtype="allof") for filter in fset.filters: if filter["name"] == name: filter["description"] = (