diff --git a/CHANGELOG.md b/CHANGELOG.md index 044e3fe..ffe5101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ Changelog ========= +8.14.1 +------ + +- Fix processing of SMTP-TLS reports (#549) + 8.14.0 ------ -- Fix processing of SMTP-TLS reports (#549) - Skip invalid aggregate report rows without calling the whole report invalid - Some providers such as GoDaddy will send reports with some rows missing a source IP address, while other rows are fine - Fix Dovecot support by using the seperator provided by the IPMAP namespace when possible (PR #552 closes #551) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index c104fe7..cabb6ec 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -34,7 +34,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg from parsedmarc.utils import parse_email from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime -__version__ = "8.14.0" +__version__ = "8.14.1" logger.debug("parsedmarc v{0}".format(__version__)) @@ -604,7 +604,7 @@ def extract_report(input_): file_object = BytesIO(b64decode(input_)) except binascii.Error: pass - else: + if file_object is None: file_object = open(input_, "rb") elif type(input_) is bytes: file_object = BytesIO(input_) diff --git a/requirements.txt b/requirements.txt index 5733843..c58170b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,7 @@ elasticsearch-dsl>=7.4.0 opensearch-py>=2.4.2,<=3.0.0 kafka-python-ng>=2.2.2 mailsuite>=1.6.1 +pygelf nose>=1.3.7 wheel>=0.37.0 flake8>=3.7.8