mirror of https://github.com/MISP/mail_to_misp
new: Add freetext import of the whole body
parent
ad36ff599d
commit
3818ac92ea
|
@ -414,6 +414,8 @@ class Mail2MISP():
|
|||
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):
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue