mirror of https://github.com/MISP/mail_to_misp
fix: use proper body
parent
5e91bdce6d
commit
f1ba50a24c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue