improve CLI output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user