mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3744 from modoboa/fix/wrong_autoreply_condition
Replaced anyof by allof condition.
This commit is contained in:
@@ -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"] = (
|
||||
|
||||
Reference in New Issue
Block a user