From c978bec48c8f76b0376a326c3bb102b208faa83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 7 May 2018 15:48:48 +0200 Subject: [PATCH] fix: typo --- mail_to_misp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail_to_misp.py b/mail_to_misp.py index 851126a..46de20c 100755 --- a/mail_to_misp.py +++ b/mail_to_misp.py @@ -149,7 +149,7 @@ class Mail2MISP(): body = re.sub(rf'^{ignoreline}.*\n?', '', body, flags=re.MULTILINE) # Remove everything after the stopword from the body - self.clean_email_body = body.split(config.stopword, 1)[0] + body = body.split(self.config.stopword, 1)[0] # Add tags to the event if keywords are found in the mail for tag in self.config.tlptags: @@ -283,6 +283,7 @@ class Mail2MISP(): else: related_ips = [] try: + syslog.syslog(hostname) for rdata in dns.resolver.query(hostname, 'A'): if debug: syslog.syslog(str(rdata))