mirror of https://github.com/MISP/PyMISP
2fb354a938
Fix #787 - Uses regex to pick up the hostnames/domains from the "Received: from" headers. Unicode to ASCII function - Spam messages more often than not contain junk text as unicode characters in the headers. The "from" and "subject" headers being the most common ones. Before this change the script would error on such emails or sometimes replace the unicode characters with questionmarks "?". - Function takes argument as an input and then encodes it in ascii while ignoring any malformed data. It then returns an ASCII string without the unicode characters. - Currently implemented for "from" and "subject" handling. |
||
---|---|---|
.. | ||
data | ||
tools | ||
__init__.py | ||
abstract.py | ||
api.py | ||
exceptions.py | ||
mispevent.py | ||
py.typed |