From f0931daa67f71363b0045568140e265b17eafd46 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Tue, 11 Feb 2020 08:54:57 +0100 Subject: [PATCH] Fix email address verification regex --- pyquarantine/whitelists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyquarantine/whitelists.py b/pyquarantine/whitelists.py index 208768f..ad66cf0 100644 --- a/pyquarantine/whitelists.py +++ b/pyquarantine/whitelists.py @@ -31,7 +31,7 @@ class WhitelistBase(object): self.test = test self.logger = logging.getLogger(__name__) self.valid_entry_regex = re.compile( - r"^[a-zA-Z0-9_.+-]*?(@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)?$") + r"^[a-zA-Z0-9_.=+-]*?(@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)?$") def check(self, mailfrom, recipient): "Check if mailfrom/recipient combination is whitelisted."