lazy load quarantine objects in cli

This commit is contained in:
2021-10-01 00:53:18 +02:00
parent b9b6a62b5e
commit 5b21adcd24
5 changed files with 26 additions and 45 deletions

View File

@@ -41,10 +41,6 @@ class BaseNotification:
def __init__(self, pretend=False):
self.pretend = pretend
@property
def type(self):
return "Base"
def execute(self, milter, logger):
return
@@ -147,10 +143,6 @@ class EMailNotification(BaseNotification):
self.parser_lib = parser_lib
@property
def type(self):
return "E-Mail"
def get_email_body_soup(self, msg, logger):
"Extract and decode email body and return it as BeautifulSoup object."
# try to find the body part