fix: use proper body

tests
Raphaël Vinot 2018-05-07 15:25:47 +02:00
parent 5e91bdce6d
commit f1ba50a24c
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class Mail2MISP():
# Add tags to the event if keywords are found in the mail # Add tags to the event if keywords are found in the mail
for tag in self.config.tlptags: 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) self.misp_event.add_tag(tag)
# Prepare extraction of IOCs # Prepare extraction of IOCs