Bugfix
This commit is contained in:
@@ -612,7 +612,7 @@ def setup_milter(test=False, cfg_files=[]):
|
||||
if "global" not in parser.sections():
|
||||
raise RuntimeError(
|
||||
"mandatory section 'global' not present in config file")
|
||||
for option in ["quarantines", "preferred_action"]:
|
||||
for option in ["quarantines", "preferred_quarantine_action"]:
|
||||
if not parser.has_option("global", option):
|
||||
raise RuntimeError(
|
||||
f"mandatory option '{option}' not present in config "
|
||||
|
||||
@@ -200,10 +200,9 @@ class EMailNotification(BaseNotification):
|
||||
self.replacement_img = None
|
||||
|
||||
# read images to embed if specified
|
||||
embedded_img_paths = []
|
||||
for p in cfg["notification_email_embedded_imgs"].split(","):
|
||||
if p:
|
||||
embedded_img_paths.append(p.strip())
|
||||
embedded_img_paths = [
|
||||
p.strip() for p in cfg["notification_email_embedded_imgs"].split(
|
||||
",") if p]
|
||||
self.embedded_imgs = []
|
||||
for img_path in embedded_img_paths:
|
||||
# read image
|
||||
|
||||
Reference in New Issue
Block a user