improve CLI output

This commit is contained in:
2021-09-30 23:51:06 +02:00
parent 01ae131088
commit 6a242e7d02
4 changed files with 27 additions and 3 deletions

View File

@@ -41,6 +41,10 @@ class BaseNotification:
def __init__(self, pretend=False):
self.pretend = pretend
@property
def type(self):
return "Base"
def execute(self, milter, logger):
return
@@ -143,6 +147,10 @@ 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