fix remove_batv and lazy-load config in CLI

This commit is contained in:
2021-10-01 14:05:46 +02:00
parent 5b21adcd24
commit 91f5b34795
3 changed files with 10 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ class WhitelistBase:
return "Base"
def remove_batv(self, addr):
return self.batv_regex.sub(r"\g<LEFT_PART>", addr, count=1)
return self.batv_regex.sub(r"\g<LEFT_PART>@", addr, count=1)
def check(self, mailfrom, recipient):
"Check if mailfrom/recipient combination is whitelisted."