mirror of https://github.com/MISP/PyMISP
parent
28b016ace1
commit
d44847b63a
|
@ -319,7 +319,10 @@ class EMailObject(AbstractMISPObjectGenerator):
|
||||||
|
|
||||||
if "Received" in message:
|
if "Received" in message:
|
||||||
try:
|
try:
|
||||||
self.add_attribute("received-header-hostname", message['Received'].split(' ')[1])
|
# We only want the hostnames
|
||||||
|
received_content = message['Received'].split(' ')
|
||||||
|
if received_content[0] == 'from':
|
||||||
|
self.add_attribute("received-header-hostname", received_content[1])
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue