mirror of https://github.com/MISP/PyMISP
adding check if "from" is in the "received" header row
parent
bbc68f4f2d
commit
2a4b215026
|
@ -217,6 +217,8 @@ class EMailObject(AbstractMISPObjectGenerator):
|
|||
Extract IP addresses from received headers that are not private.
|
||||
"""
|
||||
for received in self.__parser.received:
|
||||
if "from" not in received:
|
||||
continue
|
||||
tokens = received["from"].split(" ")
|
||||
ip = None
|
||||
for token in tokens:
|
||||
|
|
Loading…
Reference in New Issue