fix(mailer): Fix checking multiple fields. (#347)
According to the documentation, if multiple fields are defined, they must all match in order to send an email.
This commit is contained in:
parent
8194bd28b4
commit
aacc02db91
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue