From f1ba50a24cc32e549fb04c3eefcc320dcf5dd0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 7 May 2018 15:25:47 +0200 Subject: [PATCH] fix: use proper body --- mail_to_misp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_to_misp.py b/mail_to_misp.py index 69ba6a3..851126a 100755 --- a/mail_to_misp.py +++ b/mail_to_misp.py @@ -153,7 +153,7 @@ class Mail2MISP(): # Add tags to the event if keywords are found in the mail for tag in self.config.tlptags: - if any(alternativetag in self.clean_email_body.lower() for alternativetag in self.config.tlptags[tag]): + if any(alternativetag in body.lower() for alternativetag in self.config.tlptags[tag]): self.misp_event.add_tag(tag) # Prepare extraction of IOCs