Skip to content

Commit

Permalink
new: Add freetext import of the whole body
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 25, 2021
1 parent ad36ff5 commit 3818ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mail2misp/mail2misp.py
Expand Up @@ -414,6 +414,8 @@ def add_event(self):
if self.config.sighting:
for value, source in self.sightings_to_add:
self.sighting(value, source)
if self.config.freetext:
self.misp.freetext(event, string=self.original_mail.get_body(preferencelist=('html', 'plain')), adhereToWarninglists=self.config.enforcewarninglist)
return event

def get_attached_emails(self, pseudofile):
Expand Down
1 change: 1 addition & 0 deletions mail_to_misp_config.py-example
Expand Up @@ -8,6 +8,7 @@ spamtrap = False
default_distribution = 0
default_threat_level = 3
default_analysis = 1
freetext = False

body_config_prefix = 'm2m' # every line in the body starting with this value will be skipped from the IOCs
m2m_key = 'YOUSETYOURKEYHERE'
Expand Down

0 comments on commit 3818ac9

Please sign in to comment.