fix(mailer): Fix checking multiple fields. ()

According to the documentation, if multiple fields are defined, they
must all match in order to send an email.
This commit is contained in:
matmoscicki 2021-04-18 21:19:36 +02:00 committed by GitHub
parent 8194bd28b4
commit aacc02db91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,6 +245,7 @@ class MailSender(threading.Thread):
if self._rule_matches(field['regex'], value):
is_matching = True
else:
is_matching = False
break
if is_matching:
# Add up any new contacts