mirror of https://github.com/MISP/mail_to_misp
Quick fix for everything getting classified as external analysis
With the OR statement everything gets classified as external analysis when not running with --urlsonly.pull/49/head
parent
3818ac92ea
commit
5ccb365f93
|
@ -284,7 +284,7 @@ class Mail2MISP():
|
||||||
to_ids=False, enforceWarninglist=False)
|
to_ids=False, enforceWarninglist=False)
|
||||||
if email_object:
|
if email_object:
|
||||||
email_object.add_reference(attribute.uuid, 'contains')
|
email_object.add_reference(attribute.uuid, 'contains')
|
||||||
elif domainname in self.config.externallist or self.urlsonly is False: # External analysis
|
elif domainname in self.config.externallist and self.urlsonly is False: # External analysis
|
||||||
attribute = self.misp_event.add_attribute('link', entry, category='External analysis',
|
attribute = self.misp_event.add_attribute('link', entry, category='External analysis',
|
||||||
to_ids=False, enforceWarninglist=False)
|
to_ids=False, enforceWarninglist=False)
|
||||||
if email_object:
|
if email_object:
|
||||||
|
|
Loading…
Reference in New Issue